diff --git a/routers/repo/ai_model_manage.go b/routers/repo/ai_model_manage.go index 7fc9155d1..f56b93355 100644 --- a/routers/repo/ai_model_manage.go +++ b/routers/repo/ai_model_manage.go @@ -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 }