Allow user to remove openid

This commit is contained in:
Dimitris 2017-06-10 19:36:12 +03:00 committed by Stella Rouzi
parent 703dce4f5c
commit be72b9d02e
4 changed files with 19 additions and 2 deletions

View file

@ -100,6 +100,8 @@ class Ability
# can manage the commercials of their own events
can :manage, Commercial, commercialable_type: 'Event', commercialable_id: user.events.pluck(:id)
can [:destroy], Openid
end
# Abilities for signed in users with roles