Skip to content

Commit

Permalink
Merge branch 'qa' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
tmy1313 committed Mar 4, 2024
2 parents 5d010d3 + 850a197 commit 9b15e0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/services/login.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
function canImpersonate(target) {
const userRole = parseJwt(getToken())?.Authority;
const targetRole = target.role;

return !isImpersonating()
&& (((userRole === 'ROLE_ADMIN' || userRole === 'chpl-admin') && (targetRole !== 'ROLE_ADMIN' && targetRole !== 'chpl-admin'))
|| (userRole === 'chpl-onc' && targetRole !== 'chpl-admin' && targetRole !== 'chpl-onc'));
&& (((userRole === 'ROLE_ADMIN') && (targetRole !== 'ROLE_ADMIN'))
|| (userRole === 'ROLE_ONC' && targetRole !== 'ROLE_ADMIN' && targetRole !== 'ROLE_ONC'));
}

function canManageAcb(acb) {
Expand Down

0 comments on commit 9b15e0d

Please sign in to comment.