mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
changed #signed_in_with_roles(user) in ability.rb model
This commit is contained in:
parent
df29484317
commit
52a503afd2
4 changed files with 7 additions and 9 deletions
|
|
@ -88,10 +88,10 @@ class Ability
|
|||
# Abilities from not_signed_in and signed_in are also inherited
|
||||
signed_in(user)
|
||||
|
||||
signed_in_with_organizer_role(user)
|
||||
signed_in_with_cfp_role(user)
|
||||
signed_in_with_info_desk_role(user)
|
||||
signed_in_with_volunteers_coordinator_role(user)
|
||||
signed_in_with_organizer_role(user) if user.has_role? :organizer, :any
|
||||
signed_in_with_cfp_role(user) if user.has_role? :cfp, :any
|
||||
signed_in_with_info_desk_role(user) if user.has_role? :info_desk, :any
|
||||
signed_in_with_volunteers_coordinator_role(user) if user.has_role? :volunteer_coordinator, :any
|
||||
|
||||
# for users with any role
|
||||
can [:show], Conference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue