mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-17 05:34:04 +00:00
remove !! from can_manage_volunteers
This commit is contained in:
parent
4fbb7db16b
commit
dbffece956
1 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,11 @@
|
|||
module Admin
|
||||
module VolunteersHelper
|
||||
def can_manage_volunteers?(conference)
|
||||
!!(current_user.has_role? :organizer, conference) || (current_user.has_role? :volunteers_coordinator, conference)
|
||||
if (current_user.has_role? :organizer, conference) || (current_user.has_role? :volunteers_coordinator, conference)
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue