Regression from beta.8: Deleting files other than from plugins/themes fail on error

This commit is contained in:
Matias Griese
2019-04-09 10:36:13 +03:00
parent 5c832dd376
commit 20a596f18f
2 changed files with 7 additions and 2 deletions

View File

@@ -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