Removed useless permission check in wiki controller.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8735 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-01-30 18:50:04 +00:00
parent 3d27bf5318
commit 2664693ae8
2 changed files with 4 additions and 7 deletions
-5
View File
@@ -241,11 +241,6 @@ class WikiController < ApplicationController
# Export wiki to a single pdf or html file
def export
unless User.current.allowed_to?(:export_wiki_pages, @project)
redirect_to :action => 'show', :project_id => @project, :id => nil
return
end
@pages = @wiki.pages.all(:order => 'title', :include => [:content, :attachments], :limit => 75)
respond_to do |format|
format.html {