fix auth permission checking

This commit is contained in:
chrislu committed 2022-01-03 21:05:20 -08:00
1 parent a7887166cf
commit e76105e2ab
2 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -319,7 +319,7 @@ func (identity *Identity) canDo(action Action, bucket string, objectKey string)
if bucket == "" {
return false
}
target := string(action) + ":" + bucket + "/" + objectKey
target := string(action) + ":" + bucket + objectKey
limitedByBucket := string(action) + ":" + bucket
adminLimitedByBucket := s3_constants.ACTION_ADMIN + ":" + bucket
for _, a := range identity.Actions {