BigW Consortium Gitlab

Commit 9b181dc6 by Dmitriy Zaporozhets

Merge pull request #4442 from 1ed/projects-helper-fix

fixed nav bar for empty repos (fixes #4375)
parents d9c02f30 45ecbb03
......@@ -62,7 +62,7 @@ module ProjectsHelper
def get_project_nav_tabs(project, current_user)
nav_tabs = [:home]
if project.repo_exists? && can?(current_user, :download_code, project)
if !project.empty_repo? && can?(current_user, :download_code, project)
nav_tabs << [:files, :commits, :network, :graphs]
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