From ae91dc55fb04c6ff4ace38088e46cdf32631d1fe Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 8 Dec 2022 17:43:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=8F=E4=BD=9C=E8=80=85?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/ai_model_manage.go | 3 +++ 1 file changed, 3 insertions(+) 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 }