Commit 550e40a5 authored by Annabel Dunstone's avatar Annabel Dunstone

Add conditional for new pag link

parent e8cf3a7c
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
Edit Page Edit Page
.nav-controls .nav-controls
- if !(@page && @page.persisted?)
- if can?(current_user, :create_wiki, @project)
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
New Page
= render 'main_links' = render 'main_links'
......
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