This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
Logic in the dashboard that redirects the user when they don't have permission #2122
Labels
UI/UX
This issue deals with UI/UX
Describe the feature
I have discussed this with @ojeytonwilliams today about adding status can't access error which turned to redirect users, I am opening an issue to document it (so I don't forget), and get your opinions.
Currently, we are hiding the component that people can't interact with in the dashboard, instead of doing that I thought of displaying "can't access" error in layout, when they don't have permission.
Oilver had a better idea, we can use
/dashboard
and add logic which direct users to the page they want, or can't access error if they don't have it.This will make it easier to find the logic and update as it will be in something related to
dashboard
, and it would remove the need to hide some actions in the component itself.The text was updated successfully, but these errors were encountered: