修复: 项目邀请链接私有项目无法访问的情况
This commit is contained in:
parent
c426467a68
commit
29e3a55a0c
|
@ -688,7 +688,7 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
@project, @owner = Project.find_with_namespace(namespace, id)
|
@project, @owner = Project.find_with_namespace(namespace, id)
|
||||||
|
|
||||||
if @project and current_user.can_read_project?(@project)
|
if @project and current_user.can_read_project?(@project) and controller_path == "projects/project_invite_links"
|
||||||
logger.info "###########: has project and can read project"
|
logger.info "###########: has project and can read project"
|
||||||
@project
|
@project
|
||||||
# elsif @project && current_user.is_a?(AnonymousUser)
|
# elsif @project && current_user.is_a?(AnonymousUser)
|
||||||
|
|
Loading…
Reference in New Issue