diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-28 20:12:03 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-28 20:12:03 +0000 |
commit | b8a924e4e1cb6e73299b8e13b5ee8ec625cda2b7 (patch) | |
tree | d96a7548ca164cd6d0ceb190a013c853be921ef3 /app/controllers | |
parent | 744e4357a00780583df556b9d4b5cfb0ad6517dc (diff) | |
download | redmine-b8a924e4e1cb6e73299b8e13b5ee8ec625cda2b7.tar.gz redmine-b8a924e4e1cb6e73299b8e13b5ee8ec625cda2b7.zip |
Adds #current_version? method to wiki content.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7972 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/wiki_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 8713e91c4..2f4724f38 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -86,7 +86,7 @@ class WikiController < ApplicationController end @editable = editable? @sections_editable = @editable && User.current.allowed_to?(:edit_wiki_pages, @page.project) && - @content.version == @page.content.version && + @content.current_version? && Redmine::WikiFormatting.supports_section_edit? render :action => 'show' |