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
#2445
from bkcsoft/feature/fix-2442
Admins are allowed to create repos for arbitrary Orgs
tags/v1.2.0-rc1
Unknwon
9 years ago
parent
b80af0d28c
2c4b3709e4
commit
62a5eda7b4
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
routers/repo/repo.go
+ 1
- 1
routers/repo/repo.go
View File
@@ -57,7 +57,7 @@ func checkContextUser(ctx *middleware.Context, uid int64) *models.User {
}
// Check ownership of organization.
if !org.IsOrganization() || !org.IsOwnedBy(ctx.User.Id) {
if !org.IsOrganization() || !
(ctx.User.IsAdmin ||
org.IsOwnedBy(ctx.User.Id
)
) {
ctx.Error(403)
return nil
}
Write
Preview
Loading…
Cancel
Save