This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
提交代码。
Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1406/head
zouap
3 years ago
parent
3bcc3e860d
commit
66437f53f1
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
routers/repo/ai_model_manage.go
+ 3
- 0
routers/repo/ai_model_manage.go
View File
@@ -211,6 +211,9 @@ func DeleteModel(ctx *context.Context) {
}
func isCanDelete(ctx *context.Context, model *models.AiModelManage) bool {
if ctx.User == nil {
return false
}
if ctx.User.IsAdmin || ctx.User.ID == model.UserId {
return true
}
Write
Preview
Loading…
Cancel
Save