Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8953 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0bb9579088
commit
8cfc080470
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue