Can not create new page via context menu on root page as editor
As an editor i have all permissions on a page which is marked as root page. I can not create a new page via context menu (right klick), but it works via drag&drop.
#1 Updated by Guido Schmechel 10 months ago
Can reproduce it with 9.4.dev
master\typo3\sysext\backend\Classes\Form\FormDataProvider\DatabaseUserPermissionCheck.php function addData()
$result['parentPageRow'] is null if editor creates a page at root. Admin user has a separate check and returns simple true
This class should return correctly null if root level is accessed.
Maybe its okay to use $result['neighborRow'] if $result['parentPageRow'] is null.
After that the saving throws this exception:
1: Attempt to insert a record on page '[root-level]' (0) from table 'pages' without permissions. Or non-existing page.
checkRecordInsertAccess() get a negative value via resolveSortingAndPidForNewRecord()
So a simple abs() does the trick
#7 Updated by Sybille Peters 10 days ago
So you want to create a page as subpage of current page?
But if you use "New", the page is created (or tried to create) on same level as current page (under current page). I think this is currently not a bug, but it is not great either.
If you want to create a page as a subpage use the context menu: "More options" > "Create new wizard".
I think this is actually a duplicate of #81405 and should be closed.