Commit 72a71e9d authored by Kamil Trzcinski's avatar Kamil Trzcinski

Show container registry item only when container registry is enabled

parent 154270a3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment