#109752"Error undefined" while editing a content element with insufficient permissions
Description
Originally reported in Content Blocks package: https://github.com/FriendsOfTYPO3/content-blocks/issues/514
> I made a FAQ content block (migrated from a EXT:mask element) where an editor can add content elements of different CTypes inside a collection.
> A regular editor doesn’t have the permission to edit one of the listed CTypes (e.g. html, which is reserved for admin users). So when a admin or superuser adds a content element with the CType html to the FAQ element, an editor gets an error message when trying to open the content element inside the collection element in the backend.
>
> This behaviour is expected and the error justified, but it should be more helpful than “error undefined”.
>
> Steps to reproduce the behavior:
>
> Use the attached config.yaml as an example for a new content type
> Create a new FAQ content block as an admin and add a content element (CType html) inside the collection (tx_mask_faq_ce)
> Switch to an editor who, unlike the admin, doesn’t have the permission to edit html content elements
> Edit the FAQ content block as an editor and open the collection with the html element
> “Error undefined“
>
TYPO3 Version
13.4.28
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] "Error undefined" while editing a content element with insufficient permissions Resolves: #109752 Releases: main