Commit fbd9d3ec authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'hide-builds-tab' into 'master'

Hide Builds tab is GitLab CI is not enabled
Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

See merge request !1627
parents c856a7a5 efd5472c
......@@ -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
......
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