NME
NME
FFilament
Created by NME on 11/12/2024 in #❓┊help
How to hide dashboard from "Dashboard" depending on user role?
I want to know if there is a way to have a policy that restricts a user based on there role. Lets say my role is admin, then I can see the dashboard.. but when my login and my role is user I want the dashboard link or url to be unauthorize to non admin roles. I can restrict other resource based on policy on viewany policy method. but I can't seem to find a way to do this for the Dashboard.
3 replies