#83635Localized records with child records are not editable for Users limited to language
Description
This Bug is easy reproducible with the news-Extension.
1. Create a News record and add a related Link in Relations Tab with admin-User.
2. Translate the News record to second language (in my case german) with admin-User.
3. Delete the related Link in the localized News record with admin-User.
4. BE-User limited to language german can´t edit the translated News record.
Following Message appears:
Sorry, you didn't have proper permissions to perform this change. ERROR: Language was not allowed.
I think it is not possible to show the related Link of the default language.
This Bug applies to all my Extension with IRRE Elements.
Reviews 1
History 57
-
Susanne Moog changed category <span data-processor="relativetime" data-value="2018-01-23T21:43:52+00:00" > 01/23/18, 21:43 </span>
-
Oliver Hader commented and changed category <span data-processor="relativetime" data-value="2018-03-06T15:50:38+00:00" > 03/06/18, 15:50 </span>
The error message being shown is a
AccessDeniedExceptioncaught inEditDocumentController. This belongs to FormEngine… -
Gerrit Code Review pushed patch set 1 for master to change 57288 status
NewUnder Review <span data-processor="relativetime" data-value="2018-06-21T14:34:16+00:00" > 06/21/18, 14:34 </span> -
Gerrit Code Review pushed patch set 2 for master to change 57288 <span data-processor="relativetime" data-value="2018-06-25T09:19:53+00:00" > 06/25/18, 09:19 </span>
-
Benni Mack changed status
Under ReviewNew <span data-processor="relativetime" data-value="2018-11-14T06:26:41+00:00" > 11/14/18, 06:26 </span> -
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-10-22T20:29:17+00:00" > 10/22/26, 20:29 </span>This is fixed in the meantime by #102625 (commit 8d3b995d6f6, “Allow users w/o permissions on def lang to render CEs”).
DatabaseUserPermissionCheckno longer runs the record edit access check for default language inline children shown in the context of a localized parent. Language restricted editors can therefore open the translation and see the untranslated default language children as placeholders instead of getting “ERROR: Language was not allowed.”.I verified this on current main with a functional test (language restricted backend user, translated parent without child, default language child still existing). It passes, and fails with the exact error from this report as soon as the check is applied again.
Closing this issue as resolved.
If this is still valid for you in v14, please open a new issue and provide information how to reproduce it. Thanks!
I didn’t test it, but is this related to editing the record (= opening the form, that would be FormEngine), or saving it (= DataHandler)