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