summaryrefslogtreecommitdiff
path: root/app/models/ability.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r--app/models/ability.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb
index 6526cc6bc6a..eef481c8f8a 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -155,6 +155,7 @@ class Ability
:create_merge_request,
:create_wiki,
:manage_builds,
+ :download_build_artifacts,
:push_code
]
end
@@ -231,9 +232,10 @@ class Ability
# Only group masters and group owners can create new projects in group
if group.has_master?(user) || group.has_owner?(user) || user.admin?
- rules.push(*[
- :create_projects,
- ])
+ rules += [
+ :create_projects,
+ :admin_milestones
+ ]
end
# Only group owner and administrators can admin group