fixing duplicated usernames (#760)
This commit is contained in:
@@ -249,7 +249,6 @@ const PolicyDetails = ({
|
||||
</Fragment>
|
||||
}
|
||||
/>
|
||||
|
||||
<Grid container>
|
||||
<Grid item xs={12} className={classes.container}>
|
||||
<Grid item xs={12}>
|
||||
|
||||
@@ -498,7 +498,7 @@ func getListUsersWithAccessToBucketResponse(session *models.Principal, bucket st
|
||||
policy, err := adminClient.getPolicy(ctx, policyName)
|
||||
if err == nil {
|
||||
parsedPolicy, err2 := parsePolicy(policyName, policy)
|
||||
if err2 == nil && policyMatchesBucket(parsedPolicy, bucket) {
|
||||
if err2 == nil && policyMatchesBucket(parsedPolicy, bucket) && !seen[users[i].AccessKey] {
|
||||
retval = append(retval, users[i].AccessKey)
|
||||
seen[users[i].AccessKey] = true
|
||||
}
|
||||
@@ -538,6 +538,5 @@ func getListUsersWithAccessToBucketResponse(session *models.Principal, bucket st
|
||||
log.Println(err)
|
||||
}
|
||||
}
|
||||
// serialize output
|
||||
return retval, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user