Manage backup action permissions
mainThe package uses Laravel Gates to control access to specific backup actions. By default, it checks for the following abilities:
create-backup: Permission to create a new backup.download-backup: Permission to download an existing backup.delete-backup: Permission to delete an existing backup.
You can define these in your AppServiceProvider using standard Laravel Gate::define calls. If you use Spatie Laravel Permission or Filament Shield, register these exact permission names within those packages.
Gate::define('create-backup', fn (User $user): bool => (bool) $user->is_admin);
Gate::define('download-backup', fn (User $user): bool => (bool) $user->is_admin);
Gate::define('delete-backup', fn (User $user): bool => (bool) $user->is_admin);