summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb2
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