Redirect users to the ESC Portal & Nav based on Role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2025 10:57 PM
Array of system property = [R1,R2,R3]....defined in sys property
Array of user roles = [……….]
Compare user roles with system property.
If one element matched, check for other elements of user roles until it doesn’t matches.
If not matched anywhere, then break the loop and it will be NAV if all elements of user role is matched with sys property then it will be ESC.
R1,R2,R3 in system property.
if user is having R1, then he should go to ESC.
if user is having R2, R4, R5 then at R4 loop should break and he should go to Navigation screen.
if user is having R1, R2, R3 then he should go to ESC.
if user is having R1, R2 or R2, R3 or R1,R3 or just R2 or R3 or just R1 then he should go to ESC.
if user is having R1, R2, R3, R4 then it should go to NAV.
it should be such that in future if i add new role in property then code should be the same