rupertgermann / tt_news

TYPO3 Extension - News (tt_news)
21 stars 37 forks source link

[BUGIFX] Allow editors to hide news records in list view #195

Closed peterkraume closed 5 months ago

peterkraume commented 2 years ago

If an editor tries to hide a news record in list view, there is an error message regarding access to categories:

1: processDatamap: Attempt to modify a record from table tt_news without permission. Reason: The record has one or more categories assigned that are not defined in your BE usergroup. Not allowed categories: 0 (id=0)

But in list view context, the field array doesn't contain the categories, thus the check fails. Furthermore, in list context categories are not relevant anyway. This patch mitigates this problem.

jpmschuler commented 2 years ago

duplicate of #188 will close mine as this approach is more streamlined.