The module Info > Pagetree Overview offers the possibility to edit the
root page (uid 0) which is impossible as this is no real page.
The edit button for the row in the table representing the root page is
removed. The mass edit buttons in the table header don't allow to edit
that page anymore, too.
Resolves: #77678
Releases: master, 7.6
Change-Id: I7083c83372ad619ea8e8ffd2f53822bcd939d768
Reviewed-on: https://review.typo3.org/49659
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
// Getting children:
$theRows = [];
$theRows = $this->pages_getTree($theRows, $row['uid'], $delClause . BackendUtility::versioningPlaceholderClause('pages'), '', $depth);
- if ($this->getBackendUser()->doesUserHaveAccess($row, 2)) {
+ if ($this->getBackendUser()->doesUserHaveAccess($row, 2) && $row['uid'] > 0) {
$editUids[] = $row['uid'];
}
$out .= $this->pages_drawItem($row, $this->fieldArray);
$theData[$field] = $row[$field] ? ' <strong>x</strong>' : ' ';
break;
case 'uid':
- if ($this->getBackendUser()->doesUserHaveAccess($row, 2)) {
+ if ($this->getBackendUser()->doesUserHaveAccess($row, 2) && $row['uid'] > 0) {
$urlParameters = [
'edit' => [
'pages' => [