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
Merge pull request 'fix download bug' (
#19
) from bug-fix into develop
Reviewed-by: berry <senluowanxiangt@gmail.com>
master
berry
5 years ago
parent
263b818c72
e243886fa3
commit
4dda9bec99
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
models/dataset_permission.go
+ 1
- 0
models/dataset_permission.go
View File
@@ -19,6 +19,7 @@ func GetUserDataSetPermission(dataSet *Dataset, user *User) (isPermit bool, err
if !user.IsAdmin && user.ID != dataSet.UserID {
log.Error("the user is not admin nor the owner of the data_set")
}
isPermit = true
case DatasetStatusPublic:
isPermit = true
default:
Write
Preview
Loading…
Cancel
Save