mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-17 02:05:58 +08:00
FIX 重新定义项目权限控制的相关方法
This commit is contained in:
@@ -5,7 +5,7 @@ module OperateProjectAbilityAble
|
||||
end
|
||||
|
||||
def authorizate_user_can_edit_project!
|
||||
return if current_user.project_manager? @project || current_user.admin?
|
||||
return if @project.manager?(current_user) || current_user.admin?
|
||||
render_forbidden('你没有权限操作.')
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user