shuvroroy / filament-spatie-laravel-backup

Create backup of a Laravel application
MIT License
201 stars 43 forks source link

Download / Delete actions missing #60

Open stuartcusackie opened 8 months ago

stuartcusackie commented 8 months ago

I noticed that the download / delete actions shown here: https://v2.filamentphp.com/plugins/spatie-backup

Are now missing in the latest version: https://github.com/shuvroroy/filament-spatie-laravel-backup

Allowing download would be very useful for me. Is there a way to enable this feature?

Thanks!

Dieter91 commented 8 months ago

I second this. Without a download feature the plugin is sadly rather useless. (for me)

fathonialimukti commented 8 months ago

Screenshot from 2024-03-26 09-04-32

check this at src/Components/BackupDestinationListRecords.php

im not sure about the specific permission required, but it would be better if it is removable or customizable, because on my case, the one can access table should have full control over it

jgmuchiri commented 7 months ago

@stuartcusackie @Dieter91 If you are using a package such as filament shield, you should be able to generate the policies to allow assigning the necessary permissions. If not, you can create custom gate and define who can access.

image

image

Khant-Nyar commented 4 months ago

same here when i check in code i found this visible(auth()->user()->can('download-backup')) when i commit them it worked

How to make without policy or gate !