mirror of
https://github.com/goharbor/harbor
synced 2025-04-21 21:44:12 +00:00
Merge pull request #2765 from ywk253100/170712_member
Fix bug in GET member API
This commit is contained in:
commit
0501f52cda
@ -78,8 +78,8 @@ func (pma *ProjectMemberAPI) Prepare() {
|
||||
}
|
||||
pma.project = project
|
||||
|
||||
if pma.Ctx.Input.IsGet() && !pma.SecurityCtx.HasReadPerm(pid) ||
|
||||
!pma.SecurityCtx.HasAllPerm(pid) {
|
||||
if !(pma.Ctx.Input.IsGet() && pma.SecurityCtx.HasReadPerm(pid) ||
|
||||
pma.SecurityCtx.HasAllPerm(pid)) {
|
||||
pma.HandleForbidden(pma.SecurityCtx.GetUsername())
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user