This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
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
Merge pull request '读权限用户应无法删除云脑任务' (
#550
) from fix-530 into V20211018
Reviewed-on:
https://git.openi.org.cn/OpenI/aiforge/pulls/550
tags/v1.21.12.1
lewis
4 years ago
parent
d2e35c6d20
167823e52c
commit
0d19dae776
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
models/cloudbrain.go
+ 1
- 1
models/cloudbrain.go
View File
@@ -687,7 +687,7 @@ func CanDelJob(isSigned bool, user *User, job *CloudbrainInfo) bool {
return false
}
if user.ID == job.UserID || user.IsAdmin || permission.AccessMode >= AccessModeAdmin {
if
(
user.ID == job.UserID
&& permission.AccessMode >= AccessModeWrite)
|| user.IsAdmin || permission.AccessMode >= AccessModeAdmin {
return true
}
return false
Write
Preview
Loading…
Cancel
Save