#349: removed duplicate of ability
This commit is contained in:
parent
cb994c6fd6
commit
ecae06db81
|
@ -50,7 +50,6 @@ class Ability
|
|||
end
|
||||
|
||||
if user.user?
|
||||
can :show, User
|
||||
can [:read, :create], Group
|
||||
can [:update, :manage_members], Group do |group|
|
||||
group.actors.exists?(:actor_type => 'User', :actor_id => user.id, :role => 'admin') # or group.owner_id = user.id
|
||||
|
|
Loading…
Reference in New Issue