diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-06-05 14:56:16 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-06-05 14:56:16 +0200 |
commit | 00bc07a90f3b49231f7caac407028883aafff751 (patch) | |
tree | fd21e470fde2d017322c4e2be9b76c7c86fbc42a | |
parent | f217006856d66f633376bbab151e7403e6605118 (diff) | |
download | gitlab-ce-00bc07a90f3b49231f7caac407028883aafff751.tar.gz |
Should fix problem if you have an project without a project ID (Test in new_project_spec.rb)
-rw-r--r-- | app/views/layouts/header/_new_dropdown.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/header/_new_dropdown.haml b/app/views/layouts/header/_new_dropdown.haml index 9b9719a26dd..b220b40d6e3 100644 --- a/app/views/layouts/header/_new_dropdown.haml +++ b/app/views/layouts/header/_new_dropdown.haml @@ -18,7 +18,7 @@ %li.divider %li.dropdown-bold-header GitLab - - if @project && @project.namespace + - if @project && @project.namespace && :project_id - create_project_issue = can?(current_user, :create_issue, @project) - merge_project = can?(current_user, :create_merge_request, @project) ? @project : (current_user && current_user.fork_of(@project)) - create_project_snippet = can?(current_user, :create_project_snippet, @project) |