Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
elena-shostak committed Nov 27, 2024
1 parent f78b271 commit ae17618
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ export function initAPIAuthorization(
: [privilegeEntry];

for (const privilege of privileges) {
if (isReservedPrivilegeSet(privilege)) {
if (
isReservedPrivilegeSet(privilege) &&
!acc.requestedReservedPrivileges.includes(privilege)
) {
acc.requestedReservedPrivileges.push(privilege);
} else {
acc.requestedPrivileges.push(privilege);
Expand Down

0 comments on commit ae17618

Please sign in to comment.