From: Jean-Philippe Lang Date: Tue, 29 Nov 2011 18:14:12 +0000 (+0000) Subject: Code cleanup. X-Git-Tag: 1.3.0~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b7d0ee3f471be28ddbce0bdd334c8d89805a6686;p=redmine.git Code cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7979 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8c3f6f7b9..907af34a5 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -252,7 +252,7 @@ class ApplicationController < ActionController::Base if @project.is_public? || User.current.member_of?(@project) || User.current.admin? true else - User.current.logged? ? render_403 : require_login + deny_access end else @project = nil