mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 16:16:43 +10:00
Merge branch 'hide-builds-tab' into 'master'
Hide Builds tab is GitLab CI is not enabled Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !1627
This commit is contained in:
committed by
Robert Speicher
parent
84f288c7c5
commit
b6d1bcb076
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user