refactored comments_controller tests; fixed access to Administration link into user_menu view

This commit is contained in:
raluka 2015-09-15 12:39:36 +02:00
parent a9a43d726f
commit 37339dccc1
4 changed files with 19 additions and 42 deletions

View file

@ -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