Restrict user to view certain Navigation Group
How to restrict other user/acc with type
user
from viewing NavigationGroup::make('Admin')
and only user with type admin
https://filamentphp.com/docs/2.x/admin/navigation#advanced-navigation-customization
9 Replies
if a user cant see any items within a group, a group wont show
I mean if the user has a type of "admin" i wan to show all navigation group, but if user has type of regular or just user i want to hide certain navigation group
So i want to hide this
NavigationGroup::make('Admin')
to regular useryou hide all items within it
Via policies π
Policies are extremely good!
Thanks, can you redirect me to the documentation, I dont know how to start. I do have this
RolePolicy
by Shield RolesThanks I just discover, by using https://github.com/bezhanSalleh/filament-shield
I can just use, to restrict or redirect user without type super_admin
GitHub
GitHub - bezhanSalleh/filament-shield: The easiest and most intuiti...
The easiest and most intuitive way to add access management to your Filament Admin Resources, Pages & Widgets through
spatie/laravel-permission
- GitHub - bezhanSalleh/filament-shield: Th...this usage is in resource page?