mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -05:00
fix: service account list for root user (#17547)
Fixes https://github.com/minio/minio/issues/17545
This commit is contained in:
parent
bde533a9c7
commit
9d628346eb
@ -2177,7 +2177,9 @@ func (store *IAMStoreSys) ListServiceAccounts(ctx context.Context, accessKey str
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !userExists {
|
// If root user has no STS/Service Accounts, userExists would be false here,
|
||||||
|
// so we handle this exception.
|
||||||
|
if !userExists && globalActiveCred.AccessKey != accessKey {
|
||||||
return nil, errNoSuchUser
|
return nil, errNoSuchUser
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user