Merge pull request #146 from warpc/fix-autocomplete-group
Fix autocomplete for group in porjects for collaborators [Fix #145]
This commit is contained in:
commit
7c93f684cf
|
@ -31,7 +31,7 @@ class Ability
|
|||
|
||||
can [:show, :update], Settings::Notifier, :user_id => user.id
|
||||
|
||||
can [:read, :create], Group
|
||||
can [:read, :create, :autocomplete_group_uname], Group
|
||||
can [:update, :manage_members], Group do |group|
|
||||
group.objects.exists?(:object_type => 'User', :object_id => user.id, :role => 'admin') # or group.owner_id = user.id
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue