diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-23 15:28:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-23 15:28:49 +0000 |
commit | 8cfc0804703716980e94b986646b85326bc763c6 (patch) | |
tree | 354b406029c473547d9fec2c786ea19997cafc85 /app/controllers | |
parent | 0bb95790883708641a569dfdd86d26d754ced555 (diff) | |
download | redmine-8cfc0804703716980e94b986646b85326bc763c6.tar.gz redmine-8cfc0804703716980e94b986646b85326bc763c6.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8953 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 65ee8ac3b..d6cf2c979 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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 |