mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
modify admin/conference_controller_spec and not authorized error messages
This commit is contained in:
parent
aa3df0243e
commit
ad3d6f2f95
8 changed files with 120 additions and 105 deletions
|
|
@ -10,7 +10,7 @@ module Admin
|
|||
unless (current_user.has_role? :organizer, :any) || (current_user.has_role? :cfp, :any) ||
|
||||
(current_user.has_role? :info_desk, :any) || (current_user.has_role? :organization_admin, :any) ||
|
||||
(current_user.has_role? :volunteers_coordinator, :any) || current_user.is_admin
|
||||
raise CanCan::AccessDenied.new('You are not authorized to access this area!')
|
||||
raise CanCan::AccessDenied.new('You are not authorized to access this page.')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue