06-arcadia.patch 551 B

1234567891011
  1. --- contrib/python/moto/py3/moto/iam/access_control.py
  2. +++ contrib/python/moto/py3/moto/iam/access_control.py
  3. @@ -390,7 +390,7 @@ class IAMPolicyStatement(object):
  4. is_action_concerned = True
  5. if is_action_concerned:
  6. - same_resource = self._match(self._statement["Resource"], resource)
  7. + same_resource = self._check_element_matches("Resource", resource)
  8. if self._statement["Effect"] == "Allow" and same_resource:
  9. return PermissionResult.PERMITTED
  10. else: # Deny