Merge pull request #942 from nishanthvijayan/fix-roles-authorization
Fix authorization issues with Roles
This commit is contained in:
commit
0a5ba7a204
6 changed files with 77 additions and 51 deletions
|
|
@ -278,7 +278,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def can_manage_volunteers(conference)
|
||||
if (current_user.has_role? :organizer, conference) || (current_user.has_role? :volunteer_coordinator, conference)
|
||||
if (current_user.has_role? :organizer, conference) || (current_user.has_role? :volunteers_coordinator, conference)
|
||||
true
|
||||
else
|
||||
false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue