FIX 去掉超级管理员不能访问别人私有项目的权限控制
This commit is contained in:
parent
1baeab14c2
commit
e707eb5e2b
|
@ -123,6 +123,7 @@ class RepositoriesController < ApplicationController
|
|||
end
|
||||
|
||||
def authorizate!
|
||||
return if current_user && current_user.admin?
|
||||
if @project.repository.hidden? && !@project.member?(current_user)
|
||||
render_forbidden
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue