mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +02:00
Bump version to 3.0.111
This commit is contained in:
@@ -45,7 +45,7 @@ class ProcessWire extends Wire {
|
||||
* Reversion revision number
|
||||
*
|
||||
*/
|
||||
const versionRevision = 110;
|
||||
const versionRevision = 111;
|
||||
|
||||
/**
|
||||
* Version suffix string (when applicable)
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user