mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-29 22:07:32 +02:00
Merge pull request #14923 from reasonerjt/fix-14862
Fail with 401 for GET .../users/current/permissions
This commit is contained in:
commit
9afeb90646
@ -137,7 +137,7 @@ func (u *usersAPI) ListUsers(ctx context.Context, params operation.ListUsersPara
|
||||
|
||||
func (u *usersAPI) GetCurrentUserPermissions(ctx context.Context, params operation.GetCurrentUserPermissionsParams) middleware.Responder {
|
||||
if err := u.RequireAuthenticated(ctx); err != nil {
|
||||
u.SendError(ctx, err)
|
||||
return u.SendError(ctx, err)
|
||||
}
|
||||
scope := ""
|
||||
if params.Scope != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user