1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Bump version to 3.0.111

This commit is contained in:
Ryan Cramer
2018-08-24 16:41:05 -04:00
parent cc53b835b6
commit aa34e8a0f7
2 changed files with 2 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ class ProcessWire extends Wire {
* Reversion revision number * Reversion revision number
* *
*/ */
const versionRevision = 110; const versionRevision = 111;
/** /**
* Version suffix string (when applicable) * Version suffix string (when applicable)

View File

@@ -756,6 +756,7 @@ class PagePermissions extends WireData implements Module {
if(!$user->isSuperuser() && !$page->editable()) return; if(!$user->isSuperuser() && !$page->editable()) return;
$info = $this->wire('pages')->trasher()->getRestoreInfo($page); $info = $this->wire('pages')->trasher()->getRestoreInfo($page);
if(!$info['restorable']) return; if(!$info['restorable']) return;
/** @var Page $parent */
$parent = $info['parent']; $parent = $info['parent'];
// check if parent does not allow this user to add pages here // check if parent does not allow this user to add pages here
if(!$parent->id || !$parent->addable($page)) return; if(!$parent->id || !$parent->addable($page)) return;