mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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, User, id: user.id
|
||||
cannot :index, User
|
||||
|
||||
# can manage their own Event
|
||||
can :manage, Event, id: user.events.pluck(:id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue