Browse Source

增加协作者权限

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.12.1^2
zouap 2 years ago
parent
commit
ae91dc55fb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/repo/ai_model_manage.go

+ 3
- 0
routers/repo/ai_model_manage.go View File

@@ -1034,6 +1034,9 @@ func isOperModifyOrDelete(ctx *context.Context, modelUserId int64) bool {
if ctx.User.IsAdmin || ctx.User.ID == modelUserId {
return true
}
if ctx.Repo.IsOwner() {
return true
}
return false
}



Loading…
Cancel
Save