mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-29 02:51:23 +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
|
pma.project = project
|
||||||
|
|
||||||
if pma.Ctx.Input.IsGet() && !pma.SecurityCtx.HasReadPerm(pid) ||
|
if !(pma.Ctx.Input.IsGet() && pma.SecurityCtx.HasReadPerm(pid) ||
|
||||||
!pma.SecurityCtx.HasAllPerm(pid) {
|
pma.SecurityCtx.HasAllPerm(pid)) {
|
||||||
pma.HandleForbidden(pma.SecurityCtx.GetUsername())
|
pma.HandleForbidden(pma.SecurityCtx.GetUsername())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user