Bug #97171
closedRecord context menu shows "new" despite active mod.web_list.deniedNewTables
0%
Description
When disabling the "new record" button for sys_category table with PageTSconfig 'deniedNewTables', the context menu of a sys_category record still shows the "New" button.
Example PageTSconfig:mod.web_list.deniedNewTables = sys_category
This has the following effect:
- This disables the "new" record button on the table header in the Web>List view.
- The new record wizard does not show the record type (everywhere, not only in web>list)
The problem
When a sys_category record already exists, I can click on the icon to get a context menu. This context menu has a "New" button that allows the user to create a new record.
I would expect that this "New" menu item disappears, too.
Files
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73901
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73901
Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73901
Updated by Gerrit Code Review over 2 years ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73901
Updated by Christian Weiske over 1 year ago
Solution:
An option to disable the "new" menu item in context menus already exists in UserTSConfig: options.contextMenu.table.xxx.disableItems
Updated by Riccardo De Contardi over 1 year ago
- Status changed from Under Review to Closed
@Christian Weiske Thank you for your feedback;
I close this issue in agreement with the reporter (See comment 5 here for the solution also cited on the review)
If you think that this is the wrong decision, please reopen it or open a new issue with a reference to this one. Thank you.