diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-16 17:38:58 -0500 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-16 17:38:58 -0500 |
commit | 72a71e9d17c75b11e82623cd9edd22ba70c9ba4f (patch) | |
tree | 603436b61a86f9047201db1793dea5e79e88883a /app/helpers/projects_helper.rb | |
parent | 154270a3d4f42f1751502112d0e9cd6b5983032b (diff) | |
download | gitlab-ce-72a71e9d17c75b11e82623cd9edd22ba70c9ba4f.tar.gz |
Show container registry item only when container registry is enabled
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r-- | app/helpers/projects_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 466929443d6..b6ba66bf3e5 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -152,7 +152,7 @@ module ProjectsHelper nav_tabs << :builds end - if can?(current_user, :read_container_image, project) + if project.container_registry_repository_url.present? && can?(current_user, :read_container_image, project) nav_tabs << :container_registry end |