F
Filament7mo 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, ],
1 Reply
awcodes
awcodes7mo ago
Typically you would handle this at the policy level. Navigation items will honor them. Haven’t used this particular plugin, but I’m sure there’s a way to do it. Maybe ask in the plugin channel if there is one or on their github.
Want results from more Discord servers?
Add your server