From ff847184ccd2e7271598329feedcb419c8641d47 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 12 Aug 2020 11:01:34 +0800 Subject: [PATCH] Change --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f7808955..15983217 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -750,7 +750,7 @@ class ApplicationController < ActionController::Base @project elsif current_user.is_a?(AnonymousUser) logger.info "###########:This is AnonymousUser" - @project = nil if !@project&.is_public? + @project = nil if !@project.is_public? render_forbidden and return else logger.info "###########:project not found"