diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-02-18 08:03:52 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-02-18 08:03:52 +0000 |
commit | d8263dcdee13b27ea4ac56c28d10dc2ca7fb8b40 (patch) | |
tree | 8cae586bd8ca7b834be34187b17df96ae19d06e6 /app/controllers | |
parent | f70d7a3096971c43370247627feee3c0895bb828 (diff) | |
download | redmine-d8263dcdee13b27ea4ac56c28d10dc2ca7fb8b40.tar.gz redmine-d8263dcdee13b27ea4ac56c28d10dc2ca7fb8b40.zip |
Return 404 if revision URL doesn't exist (#36561).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21413 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 98066a713..074031eec 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -89,7 +89,7 @@ class WikiController < ApplicationController end @content = @page.content_for_version(params[:version]) if @content.nil? - if User.current.allowed_to?(:edit_wiki_pages, @project) && editable? && !api_request? + if params[:version].blank? && User.current.allowed_to?(:edit_wiki_pages, @project) && editable? && !api_request? edit render :action => 'edit' else |