FIX load project bug
This commit is contained in:
parent
e7ff26faa5
commit
3829f21da1
|
@ -749,7 +749,7 @@ class ApplicationController < ActionController::Base
|
||||||
if @project and current_user.can_read_project?(@project)
|
if @project and current_user.can_read_project?(@project)
|
||||||
logger.info "###########: has project and can read project"
|
logger.info "###########: has project and can read project"
|
||||||
@project
|
@project
|
||||||
elsif current_user.is_a?(AnonymousUser)
|
elsif @project && current_user.is_a?(AnonymousUser)
|
||||||
logger.info "###########:This is AnonymousUser"
|
logger.info "###########:This is AnonymousUser"
|
||||||
@project = nil if !@project.is_public?
|
@project = nil if !@project.is_public?
|
||||||
render_forbidden and return
|
render_forbidden and return
|
||||||
|
|
Loading…
Reference in New Issue