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
Allow site admin to check /api/v1/orgs endpoints (
#10867
)
Fix
#9950
Signed-off-by: Andrew Thornton <art27@cantab.net>
tags/v1.13.0-dev
zeripath
GitHub
6 years ago
parent
1ca061f956
commit
10a5ae4179
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
routers/api/v1/org/member.go
+1
-1
routers/api/v1/org/team.go
+ 1
- 1
routers/api/v1/org/member.go
View File
@@ -69,7 +69,7 @@ func ListMembers(ctx *context.APIContext) {
ctx.Error(http.StatusInternalServerError, "IsOrgMember", err)
return
}
publicOnly = !isMember
publicOnly = !isMember
&& !ctx.User.IsAdmin
}
listMembers(ctx, publicOnly)
}
+ 1
- 1
routers/api/v1/org/team.go
View File
@@ -320,7 +320,7 @@ func GetTeamMembers(ctx *context.APIContext) {
if err != nil {
ctx.Error(http.StatusInternalServerError, "IsOrganizationMember", err)
return
} else if !isMember {
} else if !isMember
&& !ctx.User.IsAdmin
{
ctx.NotFound()
return
}
Write
Preview
Loading…
Cancel
Save