diff --git a/CHANGELOG.md b/CHANGELOG.md index 10aecdb18e..e1d8e43b28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Fixed error when using Flex `SimpleStorage` with no entries * Fixed page search to include slug field [#3316](https://github.com/getgrav/grav/issues/3316) * Fixed Admin becoming unusable when GPM cannot be reached [#3383](https://github.com/getgrav/grav/issues/3383) + * Fixed `Failed to save entry: Forbidden` when moving a page to a visible page [#3389](https://github.com/getgrav/grav/issues/3389) # v1.7.17 ## 06/15/2021 diff --git a/system/src/Grav/Common/Flex/Types/Pages/PageObject.php b/system/src/Grav/Common/Flex/Types/Pages/PageObject.php index a8342d121f..21a03d35fc 100644 --- a/system/src/Grav/Common/Flex/Types/Pages/PageObject.php +++ b/system/src/Grav/Common/Flex/Types/Pages/PageObject.php @@ -273,7 +273,7 @@ public function check(UserInterface $user = null): void $parentKey = $this->getProperty('parent_key'); /** @var PageObject|null $parent */ - $parent = $this->getFlexDirectory()->getObject($parentKey); + $parent = $this->getFlexDirectory()->getObject($parentKey, 'storage_key'); if (!$parent || !$parent->isAuthorized('create', null, $user)) { throw new \RuntimeException('Forbidden', 403); }