diff options
Diffstat (limited to 'app/views/wiki')
-rw-r--r-- | app/views/wiki/_content.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/wiki/_content.html.erb b/app/views/wiki/_content.html.erb index 0e747799d..60b6a7452 100644 --- a/app/views/wiki/_content.html.erb +++ b/app/views/wiki/_content.html.erb @@ -1,4 +1,4 @@ <div class="wiki wiki-page"> <%= textilizable content, :text, :attachments => content.page.attachments, - :edit_section_links => (content.is_a?(WikiContent) && @editable && User.current.allowed_to?(:edit_wiki_pages, @page.project) && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %> + :edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %> </div> |