Allow user to remove openid

This commit is contained in:
Dimitris 2017-06-10 19:36:12 +03:00
parent 53040b3be9
commit 9d4d42341c
4 changed files with 19 additions and 2 deletions

View file

@ -99,6 +99,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