Fixed: Section-edit buttons not available when a the version parameter is provided even if it's the current version (#9674).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7970 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-11-28 18:11:30 +00:00
parent 9f15517095
commit 63dc83fc0d
3 changed files with 41 additions and 1 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) &&
params[:version].nil? &&
@content.version == @page.content.version &&
Redmine::WikiFormatting.supports_section_edit?
render :action => 'show'