Skip to content

Commit

Permalink
Filter out the ACCOUNTANT role from the roles as it has nothing to do…
Browse files Browse the repository at this point in the history
… with the spender actions (#2642)
  • Loading branch information
arjunaj5 authored Jan 31, 2024
1 parent 7050ab4 commit 29291df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/core/services/permissions.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,10 @@ export class PermissionsService {
roles.splice(roles.indexOf('SUPER_ADMIN'), 1);
}

if (roles.indexOf('ACCOUNTANT') > -1) {
roles.splice(roles.indexOf('ACCOUNTANT'), 1);
}

return roles;
})
);
Expand Down

0 comments on commit 29291df

Please sign in to comment.