Skip to content

Commit d529a59

Browse files
committed
fix bug - in requesting account the property is iam_path and not path
Signed-off-by: shirady <57721533+shirady@users.noreply.github.com>
1 parent 5a51122 commit d529a59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sdk/accountspace_fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ class AccountSpaceFS {
674674
const full_action_name = get_action_message_title(action);
675675
const account_id_for_arn = this._get_account_owner_id_for_arn(requesting_account);
676676
const arn_for_requesting_account = create_arn_for_user(account_id_for_arn,
677-
requesting_account.name.unwrap(), requesting_account.path);
677+
requesting_account.name.unwrap(), requesting_account.iam_path);
678678
const basic_message = `User: ${arn_for_requesting_account} is not authorized to perform:` +
679679
`${full_action_name} on resource: `;
680680
let message_with_details;

src/util/account_util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ function _throw_access_denied_error(action, requesting_account, details, entity)
446446
const full_action_name = get_action_message_title(action);
447447
const account_id_for_arn = _get_account_owner_id_for_arn(requesting_account).toString();
448448
const arn_for_requesting_account = create_arn_for_user(account_id_for_arn, get_iam_username(requesting_account.name.unwrap()),
449-
requesting_account.path || IAM_DEFAULT_PATH);
449+
requesting_account.iam_path || IAM_DEFAULT_PATH);
450450
const basic_message = `User: ${arn_for_requesting_account} is not authorized to perform:` +
451451
`${full_action_name} on resource: `;
452452
let message_with_details;

0 commit comments

Comments
 (0)