Skip to content

Commit

Permalink
Merge pull request #429 from jpmschuler/bugfix-editors
Browse files Browse the repository at this point in the history
[BUGFIX] non-admins can't add content

Resolves: #429
Related: #212 
Release: 8.1.2
  • Loading branch information
opi99 authored Sep 6, 2022
2 parents f009a9c + 5f55a8e commit 882d652
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Classes/Controller/Backend/PageLayoutController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class PageLayoutController extends ActionController
/**
* Record of current page with _path information BackendUtility::readPageAccess
*
* @var array
* @var array|false
*/
protected $pageInfo;

Expand Down Expand Up @@ -188,7 +188,9 @@ public function showAction()

$this->pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);

$this->view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation($this->pageInfo);
if ($this->pageInfo !== false) {
$this->view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation($this->pageInfo);
}
$this->view->getModuleTemplate()->setFlashMessageQueue($this->getFlashMessageQueue());

$contentHeader = '';
Expand Down Expand Up @@ -249,7 +251,7 @@ public function showAction()
$this->view->assign('pageMessages', $this->getFlashMessageQueue('TVP')->getAllMessages());

$this->view->assign('calcPerms', $this->calcPerms);
$this->view->assign('basicEditRights', $this->hasBasicEditRights());
$this->view->assign('basicEditRights', $this->hasBasicEditRights(isset($this->pageInfo['uid']) ? 'pages' : null, isset($this->pageInfo['uid']) ? $this->pageInfo : null));
$this->view->assign('clipboard', $this->clipboard2fluid());


Expand Down

0 comments on commit 882d652

Please sign in to comment.