mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-16 04:31:22 +01: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…
Reference in New Issue
Block a user