diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2016-10-31 18:54:17 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2016-10-31 18:54:17 +0300 |
commit | a60cc42b262cb63ce5d2284f1f3f41d6521daa14 (patch) | |
tree | 31a86443d5345a3a9f63113d561faf3a86ce0299 /app | |
parent | 5566f277caffc6be3f5c7bfa8e8ab2fab2928ce9 (diff) | |
parent | cabc2a716035ef61bec661db44958ee2e48ea841 (diff) |
Merge branch 'issue_23951' into 'master'
Fix builds tab visibility
closes #23951
See merge request !7178
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/projects_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index d26b4018be6..42c00ec3cd5 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -174,10 +174,14 @@ module ProjectsHelper nav_tabs << :merge_requests end - if can?(current_user, :read_build, project) + if can?(current_user, :read_pipeline, project) nav_tabs << :pipelines end + if can?(current_user, :read_build, project) + nav_tabs << :builds + end + if Gitlab.config.registry.enabled && can?(current_user, :read_container_image, project) nav_tabs << :container_registry end |