mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
delete api update
This commit is contained in:
@@ -26,6 +26,10 @@ class DeleteFileOrFolderAction
|
||||
->with('folders')
|
||||
->find($id);
|
||||
|
||||
if (! $folder) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gate::authorize('can-edit', [$folder, $shared]);
|
||||
|
||||
// Get folder shared record
|
||||
@@ -85,6 +89,10 @@ class DeleteFileOrFolderAction
|
||||
$file = File::withTrashed()
|
||||
->find($id);
|
||||
|
||||
if (! $file) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gate::authorize('can-edit', [$file, $shared]);
|
||||
|
||||
// Get folder shared record
|
||||
|
||||
Reference in New Issue
Block a user