- Issue created by @candalt
- First commit to issue fork.
- Status changed to Needs review
10 months ago 9:31am 18 January 2024 - πΊπ¦Ukraine AstonVictor
Hi @candalt,
thanks for your report.
yeap, it seems like a core issue. as a fix, we can force-create node grants for all languages.
e.g. if the site has two languages: en & nl and the node only has en translation then we should force add grants for nl lang as well that should be the same as for en.
please, check the MR works for you.
- π³π΄Norway candalt
Hi @AstonVictor
I have tested the "plain diff" as a patch and it works just fine. After applying the patch and running the database update, a "non admin" user can now add new translations.
Thanx for the quick reply :-)
Does this impact performance by any chance? After applying the patch quite a few more records are added to the "node_access" table.
- π¨πΏCzech Republic Bohus Ulrych Pilsen (Czechia)
Hi, this problem appeared on my site as well.
Patch seems to be working well, but I hesitate to use it - also from performance point of view.
In my situation is maybe better to use grant permission "Link to any page", as suggested here https://www.drupal.org/project/drupal/issues/3101344#comment-13394820 π hook_node_grants implementations lead to a 'URL Alias' validation error when saving translated nodes. Fixed This solved my problem too.
Thanks - Status changed to Closed: outdated
9 months ago 7:36am 4 March 2024 - πΊπ¦Ukraine AstonVictor
the fix was merged to the core - π hook_node_grants implementations lead to a 'URL Alias' validation error when saving translated nodes. Fixed
I have a website that cannot be updated to drupal 10.3.1 yet, and we need this changes applied to version 8.x-1.5 of this module, so i have done a patch for this version.