Commit 1e4fb1f8 authored by Tim Zallmann's avatar Tim Zallmann

Should fix problem if you have an project without a project ID (Test in new_project_spec.rb)

parent 4e2f5eac
......@@ -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)
......
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