diff options
| author | GitLab <gitlab@localhost> | 2013-01-17 17:35:57 +0200 |
|---|---|---|
| committer | GitLab <gitlab@localhost> | 2013-01-17 17:35:57 +0200 |
| commit | 232d61d59808e6f0c731d135d728800c4b13ae27 (patch) | |
| tree | 87356bbbd97abd549fcc489fb3bed60dc0438528 /app/models/ability.rb | |
| parent | c7c1a97c2fecb8931bbe66af6860a072ca97335d (diff) | |
| download | gitlab-ce-232d61d59808e6f0c731d135d728800c4b13ae27.tar.gz | |
Refactor project creation. Added logout link to profile page
Diffstat (limited to 'app/models/ability.rb')
| -rw-r--r-- | app/models/ability.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 362877f0b22..c0da9396baa 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -7,7 +7,7 @@ class Ability when "Note" then note_abilities(object, subject) when "Snippet" then snippet_abilities(object, subject) when "MergeRequest" then merge_request_abilities(object, subject) - when "Group" then group_abilities(object, subject) + when "Group", "Namespace" then group_abilities(object, subject) else [] end end @@ -102,7 +102,8 @@ class Ability # Only group owner and administrators can manage group if group.owner == user || user.admin? rules << [ - :manage_group + :manage_group, + :manage_namespace ] end |
