FilamentF
Filament2y ago
EDC

spatie permissions roles -> hiding menu condionally

Hi,
In the config/filament-spatie-roles-permissions.php file I can hide the roles and the permissions menu item by setting should_register_on_navitation to false.
But how would I hide them for non admin roles?
Kind regards,
Erwin

config/filament-spatie-roles-permissions.php
'should_register_on_navigation' => [
'permissions' => true,
'roles' => true,
],
Was this page helpful?