Project

General

Profile

Actions

Bug #97171

closed

Record context menu shows "new" despite active mod.web_list.deniedNewTables

Added by Christian Weiske over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2022-03-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

2022-03-11_2.png (14.3 KB) 2022-03-11_2.png Christian Weiske, 2022-03-11 09:34
Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

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.

Actions

Also available in: Atom PDF