]> source.dussan.org Git - redmine.git/commitdiff
Code cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 23 Feb 2012 15:28:49 +0000 (15:28 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 23 Feb 2012 15:28:49 +0000 (15:28 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8953 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb

index 65ee8ac3bfba4aa2a99288d06829ef5a9a708cce..d6cf2c979ba922e7438a8e4be73204f3ad94e948 100644 (file)
@@ -264,7 +264,7 @@ class ApplicationController < ActionController::Base
   # used as a before_filter for actions that do not require any particular permission on the project
   def check_project_privacy
     if @project && @project.active?
-      if @project.is_public? || User.current.member_of?(@project) || User.current.admin?
+      if @project.visible?
         true
       else
         deny_access