We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89f64d8 commit 2ffe3aeCopy full SHA for 2ffe3ae
src/server/system_services/bucket_server.js
@@ -559,7 +559,11 @@ async function get_account_by_principal(principal) {
559
if (principal_by_arn) return true;
560
} else {
561
const account = system_store.data.accounts.find(acc => acc._id.toString() === principal_as_string);
562
- const principal_by_id = account !== undefined;
+ if (account && account.owner) {
563
+ dbg.log3('get_account_by_principal: principal_by_id not supported for IAM users');
564
+ return false;
565
+ }
566
+ const principal_by_id = Boolean(account);
567
dbg.log3('get_account_by_principal: principal_by_id', principal_by_id);
568
if (principal_by_id) return true;
569
}
0 commit comments