mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 17:46:07 +10:00
Hide Builds tab is GitLab CI is not enabled
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -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