when logging in a user is given certain attributes at different endpoints, this retrieves the role and locks their view to certain pages accordingly, if a user access a page they shouldn't they are informed of the situation and forcefully logged out
Closes # (issue number)
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Please describe how you tested this PR (both manually and with tests)
Provide instructions so we can reproduce.
[x] Manual verification and testing
Checklist:
[x] I have performed a self-review of my own code
[x] I have commented my code where needed
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ ] Any UI changes have been checked to work on desktop, tablet, and mobile
Description
when logging in a user is given certain attributes at different endpoints, this retrieves the role and locks their view to certain pages accordingly, if a user access a page they shouldn't they are informed of the situation and forcefully logged out
Closes # (issue number)
Type of change
How Has This Been Tested?
Please describe how you tested this PR (both manually and with tests) Provide instructions so we can reproduce.
Checklist: