mvenghaus / filament-plugin-schedule-monitor

MIT License
10 stars 6 forks source link

Enable authorization #6

Open samuelterra22 opened 1 month ago

samuelterra22 commented 1 month ago

It may be my mistake, but this functionality with Filament Shield is not working.

Even if the functionality is unchecked, the menus continue to appear for all users.

image

mvenghaus commented 1 month ago

The policies are usually based on the Models. So you generated them? And you are no super_admin?

gregupton commented 1 month ago

@samuelterra22 publish the Spatie config:

php artisan vendor:publish --provider="Spatie\ScheduleMonitor\ScheduleMonitorServiceProvider" --tag="schedule-monitor-config"

Then, create two models and policies and update the Spatie configuration for your new models.