mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-12-24 01:10:42 +01:00
Fix #920 bug in deleting a file uploaded with the file field
This commit is contained in:
@@ -806,7 +806,7 @@ class AdminBaseController
|
||||
$field = $uri->param('field');
|
||||
|
||||
$event = $this->grav->fireEvent('onAdminCanSave', new Event(['controller' => &$this]));
|
||||
if (!$event['can_save']) {
|
||||
if (isset($event['can_save']) && $event['can_save'] == false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user