04-arcadia.patch 523 B

1234567891011
  1. --- contrib/python/moto/py3/moto/s3/models.py
  2. +++ contrib/python/moto/py3/moto/s3/models.py
  3. @@ -561,6 +561,8 @@ def get_canned_acl(acl):
  4. grants = [FakeGrant([owner_grantee], [PERMISSION_FULL_CONTROL])]
  5. if acl == "private":
  6. pass # no other permissions
  7. + elif acl == "public-write":
  8. + grants.append(FakeGrant([ALL_USERS_GRANTEE], [PERMISSION_WRITE]))
  9. elif acl == "public-read":
  10. grants.append(FakeGrant([ALL_USERS_GRANTEE], [PERMISSION_READ]))
  11. elif acl == "public-read-write":