diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index 6a6867d3..c07bce9d 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -45,7 +45,7 @@ class ProcessWire extends Wire { * Reversion revision number * */ - const versionRevision = 110; + const versionRevision = 111; /** * Version suffix string (when applicable) diff --git a/wire/modules/PagePermissions.module b/wire/modules/PagePermissions.module index 16cb87fe..556c1ba5 100644 --- a/wire/modules/PagePermissions.module +++ b/wire/modules/PagePermissions.module @@ -756,6 +756,7 @@ class PagePermissions extends WireData implements Module { if(!$user->isSuperuser() && !$page->editable()) return; $info = $this->wire('pages')->trasher()->getRestoreInfo($page); if(!$info['restorable']) return; + /** @var Page $parent */ $parent = $info['parent']; // check if parent does not allow this user to add pages here if(!$parent->id || !$parent->addable($page)) return;