diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-12 11:02:15 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:16 +0100 |
commit | 487b0a026f9efe2d8214c19a7b95b391708ba3f4 (patch) | |
tree | de1454b660d4478af5dafdfcfd027c787c6ae0c3 /app/models | |
parent | 2be76355caa579d444c8e3c0d25563eb9778bfb2 (diff) | |
download | gitlab-ce-487b0a026f9efe2d8214c19a7b95b391708ba3f4.tar.gz |
Improvements, readability for artifacts browser
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ability.rb | 2 | ||||
-rw-r--r-- | app/models/ci/build.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 5a1a67db8e1..5375148a654 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -175,7 +175,7 @@ class Ability :create_merge_request, :create_wiki, :manage_builds, - :download_build_artifacts, + :read_build_artifacts, :push_code ] end diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 7593ceda488..fef667f865e 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -344,7 +344,7 @@ module Ci end def artifacts_browser_supported? - artifacts? && artifacts_file.path.end_with?('zip') && artifacts_metadata.exists? + artifacts? && artifacts_metadata.exists? end def artifacts_metadata_path(path) |