mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
refactored comments_controller tests; fixed access to Administration link into user_menu view
This commit is contained in:
parent
a9a43d726f
commit
37339dccc1
4 changed files with 19 additions and 42 deletions
|
|
@ -94,6 +94,7 @@ class Ability
|
|||
signed_in_with_volunteers_coordinator_role(user) if user.has_role? :volunteer_coordinator, :any
|
||||
|
||||
# for users with any role
|
||||
can :access, Admin
|
||||
can [:show], Conference
|
||||
can :index, Commercial, commercialable_type: 'Conference'
|
||||
cannot [:edit, :update, :destroy], Question, global: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue