#1836 未登录或者没有权限访问私有项目时,跳转到403页面
This commit is contained in:
parent
0b2fa35a42
commit
520e9c73aa
|
@ -558,6 +558,11 @@ class ProjectsController < ApplicationController
|
|||
|
||||
# Show @project
|
||||
def show
|
||||
if(@project && !@project.is_public && !User.current.member_of?(@project))
|
||||
render_403
|
||||
return
|
||||
end
|
||||
|
||||
@project_type = params[:project_type]
|
||||
|
||||
# try to redirect to the requested menu item
|
||||
|
|
Loading…
Reference in New Issue