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 about 1 year 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 4 months 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.
#8 Updated by Riccardo De Contardi 4 months ago
- Status changed from New to Closed
I close this issue as a duplicate of #81405 , please continue the discussion there, thank you.
I have added there a reference to this issue to keep track of it; I've also added there the comment https://forge.typo3.org/issues/85260#note-1 to keep track of it, too.
If you think that this is the wrong decision, then please reopen it or open a new ticket and add a relation to this ticket number.
Thank you and best regards.