Skip to content
Snippets Groups Projects
Commit d028235f authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix Error for editor users on root page (uid = 0)

parent 85ab3ce9
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,10 @@ class BackendController extends ActionController {
// create docheader + buttons
$pageInfo = BackendUtility::readPageAccess($pageUid, $GLOBALS['BE_USER']->getPagePermsClause(1));
if ($pageInfo === FALSE) {
$pageInfo = ['uid' => $pageUid];
}
$this->docHeaderComponent = GeneralUtility::makeInstance(DocHeaderComponent::class);
$this->docHeaderComponent->setMetaInformation($pageInfo);
BackendService::makeButtons($this->docHeaderComponent, $this->request);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment