mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-28 16:56:36 +01:00
Regression from beta.8: Deleting files other than from plugins/themes fail on error
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
* Fixed user edit links if Flex Objects plugin is installed but user isn't Flex User
|
* Fixed user edit links if Flex Objects plugin is installed but user isn't Flex User
|
||||||
* Fixed deprecated `sameas()` Twig test
|
* Fixed deprecated `sameas()` Twig test
|
||||||
* Regression: Fixed lost user access when saving user profile without super user permissions [#1639](https://github.com/getgrav/grav-plugin-admin/issues/1639)
|
* Regression: Fixed lost user access when saving user profile without super user permissions [#1639](https://github.com/getgrav/grav-plugin-admin/issues/1639)
|
||||||
|
* Regression from beta.8: Deleting files other than from plugins/themes fail on error
|
||||||
|
|
||||||
# v1.9.0-rc.4
|
# v1.9.0-rc.4
|
||||||
## 03/20/2019
|
## 03/20/2019
|
||||||
|
|||||||
@@ -941,8 +941,12 @@ class AdminBaseController
|
|||||||
$settings = (object)$blueprints->schema()->getProperty($field);
|
$settings = (object)$blueprints->schema()->getProperty($field);
|
||||||
} else {
|
} else {
|
||||||
$page = null;
|
$page = null;
|
||||||
$obj = $this->grav[$type]->get(Utils::substrToString($blueprint, '/'));
|
if ($type === 'user') {
|
||||||
$settings = (object)$obj->blueprints()->schema()->getProperty($field);
|
$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
|
// Get destination
|
||||||
|
|||||||
Reference in New Issue
Block a user