@@ -85,6 +85,7 class WikiController < ApplicationController | |||
|
85 | 85 | end |
|
86 | 86 | end |
|
87 | 87 | @editable = editable? |
|
88 | @sections_editable = @editable && User.current.allowed_to?(:edit_wiki_pages, @page.project) && params[:version].nil? | |
|
88 | 89 | render :action => 'show' |
|
89 | 90 | end |
|
90 | 91 |
@@ -1,4 +1,4 | |||
|
1 | 1 | <div class="wiki wiki-page"> |
|
2 | 2 | <%= textilizable content, :text, :attachments => content.page.attachments, |
|
3 |
:edit_section_links => ( |
|
|
3 | :edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %> | |
|
4 | 4 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now