move admin/users to be accessed only by site admins

This commit is contained in:
shlok007 2017-07-14 21:09:28 +05:30
parent d9a3b0de72
commit a46c1a5738
5 changed files with 22 additions and 1 deletions

View file

@ -18,7 +18,6 @@ class AdminAbility
end
def common_abilities_for_roles(user)
can :manage, User, id: user.id
can :manage, Registration, user_id: user.id
can :index, Conference