Skip to content
Snippets Groups Projects
Verified Commit efd5472c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Hide Builds tab is GitLab CI is not enabled

parent c856a7a5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -113,7 +113,7 @@ module ProjectsHelper
nav_tabs << :merge_requests
end
 
if can?(current_user, :read_build, project)
if project.gitlab_ci? && can?(current_user, :read_build, project)
nav_tabs << :builds
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