Skip to content

Commit a7a1196

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 c0ac4c1 commit a7a1196

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
@@ -441,7 +441,7 @@ function _throw_access_denied_error(action, requesting_account, details, entity)
441441
const full_action_name = get_action_message_title(action);
442442
const account_id_for_arn = _get_account_owner_id_for_arn(requesting_account).toString();
443443
const arn_for_requesting_account = create_arn_for_user(account_id_for_arn, get_iam_username(requesting_account.name.unwrap()),
444-
requesting_account.path || IAM_DEFAULT_PATH);
444+
requesting_account.iam_path || IAM_DEFAULT_PATH);
445445
const basic_message = `User: ${arn_for_requesting_account} is not authorized to perform:` +
446446
`${full_action_name} on resource: `;
447447
let message_with_details;

0 commit comments

Comments
 (0)