Skip to content

Commit 08e4f28

Browse files
minio update
1 parent ac3b8bd commit 08e4f28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/utils/minio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ func (minIOAdminClient *MinIOAdminClient) RemoveFromPolicy(bucketName string, po
434434
return jsonErr
435435
}
436436
if len(actualPolicy.Statement[0].Resource) == 1 {
437-
if policyName == ALL_USERS_GROUP {
437+
if policyName == ALL_USERS_GROUP || !isGroup {
438438
actualPolicy.Statement[0].Effect = "Deny"
439439
} else {
440440
if err := minIOAdminClient.adminClient.RemoveCannedPolicy(context.TODO(), policyName); err != nil {

0 commit comments

Comments
 (0)