diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-18 16:31:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-18 16:31:17 +0000 |
commit | 2770e285358a8ae1e39cc7f594e1ccf8cfa417c3 (patch) | |
tree | 303fbcff104a5b9df1ea6407ea386652312b86d1 /app/views/wiki | |
parent | 6fc245327ce5bb4bb75f1378424635e347dfcd02 (diff) | |
download | redmine-2770e285358a8ae1e39cc7f594e1ccf8cfa417c3.tar.gz redmine-2770e285358a8ae1e39cc7f594e1ccf8cfa417c3.zip |
Do not show section edit links for wiki page history (#2222).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7830 e93f8b46-1217-0410-a6f0-8f06a7374b81
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> |