This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
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>
tags/v1.21.12.1^2
zouap
3 years ago
parent
eebd9f8498
commit
6ed05c144f
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
@@ -414,6 +414,9 @@ func isQueryRight(ctx *context.Context) bool {
}
func isOper(ctx *context.Context, modelUserId int64) bool {
if ctx.User == nil {
return false
}
if ctx.User.IsAdmin || ctx.Repo.IsAdmin() || ctx.Repo.IsOwner() || ctx.User.ID == modelUserId {
return true
}
Write
Preview
Loading…
Cancel
Save