mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user