summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorAndrew Johnson <ajohnson@draster.com>2016-01-15 02:29:34 -0800
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-15 12:01:19 +0100
commitf66f9e95bf1e67ad13de9958d16103b858b58e72 (patch)
tree16d511865ed6ba5f3eba29de8366d046cf8157f1 /app/models
parentf093d8ccb4101e160bf2a89ec1f9ebe9d73f84fc (diff)
downloadgitlab-ce-f66f9e95bf1e67ad13de9958d16103b858b58e72.tar.gz
Give reporters the ability to download artifacts.
Also fix a few places where page_404 should be render_404.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ability.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb
index 5375148a654..ab59a3506a2 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -160,6 +160,7 @@ class Ability
@project_report_rules ||= project_guest_rules + [
:create_commit_status,
:read_commit_statuses,
+ :read_build_artifacts,
:download_code,
:fork_project,
:create_project_snippet,
@@ -175,7 +176,6 @@ class Ability
:create_merge_request,
:create_wiki,
:manage_builds,
- :read_build_artifacts,
:push_code
]
end