do not index users unless organizer or admin
This commit is contained in:
parent
d41988c74f
commit
d7873c9e6c
1 changed files with 1 additions and 0 deletions
|
|
@ -134,6 +134,7 @@ class Ability
|
||||||
|
|
||||||
# can manage their own User
|
# can manage their own User
|
||||||
can :manage, User, id: user.id
|
can :manage, User, id: user.id
|
||||||
|
cannot :index, User
|
||||||
|
|
||||||
# can manage their own Event
|
# can manage their own Event
|
||||||
can :manage, Event, id: user.events.pluck(:id)
|
can :manage, Event, id: user.events.pluck(:id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue