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/controllers/wiki_controller.rb | |
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/controllers/wiki_controller.rb')
-rw-r--r-- | app/controllers/wiki_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 721ea28de..ba37a511f 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -85,6 +85,7 @@ class WikiController < ApplicationController end end @editable = editable? + @sections_editable = @editable && User.current.allowed_to?(:edit_wiki_pages, @page.project) && params[:version].nil? render :action => 'show' end |