Adds #current_version? method to wiki content.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7972 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-11-28 20:12:03 +00:00
parent 744e4357a0
commit b8a924e4e1
5 changed files with 46 additions and 5 deletions
+1 -1
View File
@@ -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'