Skip to content
Snippets Groups Projects
Commit 72a71e9d authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Show container registry item only when container registry is enabled

parent 154270a3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment