Skip to content

Commit

Permalink
filter out personal policies
Browse files Browse the repository at this point in the history
  • Loading branch information
arosiclair committed Oct 31, 2024
1 parent edada2d commit e6fc1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Policy/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3738,7 +3738,7 @@ function setWorkspaceEReceiptsEnabled(policyID: string, eReceipts: boolean) {
}

function getAdminPolicies(): Policy[] {
return Object.values(allPolicies ?? {}).filter<Policy>((policy): policy is Policy => !!policy && policy.role === CONST.POLICY.ROLE.ADMIN);
return Object.values(allPolicies ?? {}).filter<Policy>((policy): policy is Policy => !!policy && policy.role === CONST.POLICY.ROLE.ADMIN && policy.type !== CONST.POLICY.TYPE.PERSONAL);
}

function getAdminPoliciesConnectedToSageIntacct(): Policy[] {
Expand Down

0 comments on commit e6fc1f0

Please sign in to comment.