mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
parent
02c24a860d
commit
c19b1a143e
@ -2228,6 +2228,12 @@ func (sys *IAMSys) policyDBGet(name string, isGroup bool) (policies []string, er
|
||||
|
||||
mp, ok := sys.iamUserPolicyMap[name]
|
||||
if !ok {
|
||||
// Service accounts with root credentials, inherit parent permissions
|
||||
if parentName == globalActiveCred.AccessKey && u.IsServiceAccount() {
|
||||
// even if this is set, the claims present in the service
|
||||
// accounts apply the final permissions if any.
|
||||
return []string{"consoleAdmin"}, nil
|
||||
}
|
||||
if parentName != "" {
|
||||
mp = sys.iamUserPolicyMap[parentName]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user