]> source.dussan.org Git - redmine.git/commitdiff
Code cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 29 Nov 2011 18:14:12 +0000 (18:14 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 29 Nov 2011 18:14:12 +0000 (18:14 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7979 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb

index 8c3f6f7b9498080e0ffbbc70774e3d60ad672a72..907af34a54fd740684e607e294695bccd8a9e52e 100644 (file)
@@ -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