-
Notifications
You must be signed in to change notification settings - Fork 0
Description
This ticket will make it so that for certain pages you need to have a certain role to view that page.
There are two parts of this ticket making sure only an employee or admin can view all the pages and making sure only an admin can view the admin page. Make sure you also take inactive users into consideration, so that if they sign in, they can't see any of the pages.
To do this ticket, you need to access the user store that has the user object which has their role. In all of the pages, you would need to check this role in the store, and if they have the correct role, they can view the page if not (aka the check fails) they see the unauthorized page.
We are creating a design for the unauthorized screen. For now you can just make a component that is just a div with text saying you can't view the screen.
Design:
