mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-12-20 07:20:36 +01:00
Regression from beta.8: Deleting files other than from plugins/themes fail on error
This commit is contained in:
@@ -941,8 +941,12 @@ class AdminBaseController
|
||||
$settings = (object)$blueprints->schema()->getProperty($field);
|
||||
} else {
|
||||
$page = null;
|
||||
$obj = $this->grav[$type]->get(Utils::substrToString($blueprint, '/'));
|
||||
$settings = (object)$obj->blueprints()->schema()->getProperty($field);
|
||||
if ($type === 'user') {
|
||||
$settings = (object)$this->admin->blueprints($blueprint)->schema()->getProperty($field);
|
||||
} else {
|
||||
$obj = $this->grav[$type]->get(Utils::substrToString($blueprint, '/'));
|
||||
$settings = (object)$obj->blueprints()->schema()->getProperty($field);
|
||||
}
|
||||
}
|
||||
|
||||
// Get destination
|
||||
|
||||
Reference in New Issue
Block a user