mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-26 10:21:14 +00:00
Don't redirect anonymous users to the login form when module is disabled (#26145).
git-svn-id: http://svn.redmine.org/redmine/trunk@16726 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
310060ff57
commit
2eaabae252
@ -260,6 +260,9 @@ class ApplicationController < ActionController::Base
|
||||
else
|
||||
if @project && @project.archived?
|
||||
render_403 :message => :notice_not_authorized_archived_project
|
||||
elsif @project && !@project.allows_to?(:controller => ctrl, :action => action)
|
||||
# Project module is disabled
|
||||
render_403
|
||||
else
|
||||
deny_access
|
||||
end
|
||||
|
||||
@ -579,7 +579,7 @@ class ProjectsControllerTest < Redmine::ControllerTest
|
||||
get :settings, :params => {
|
||||
:id => 1
|
||||
}
|
||||
assert_response 302
|
||||
assert_response 403
|
||||
end
|
||||
|
||||
def test_setting_with_wiki_module_and_no_wiki
|
||||
@ -700,7 +700,7 @@ class ProjectsControllerTest < Redmine::ControllerTest
|
||||
:name => 'Closed'
|
||||
}
|
||||
}
|
||||
assert_response 302
|
||||
assert_response 403
|
||||
assert_equal 'eCookbook', Project.find(1).name
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user