pxlrbt / filament-activity-log

Spatie activity log integration into Filament
MIT License
126 stars 24 forks source link

Restore activity authorization #38

Closed niekbr closed 3 months ago

niekbr commented 3 months ago

The authorization to restore an activity is hardcoded to the restore policy method through static::getResource()::canRestore(...), which is meant for restoring soft-deleted models (https://filamentphp.com/docs/3.x/actions/prebuilt-actions/restore). Since this concerns a different type of restoring, I propose the authorization method to be overwritable.