- πΊπΈUnited States j_s
Hello, I also ran into this issue with 8.x-1.0-alpha4. I have a configuration sync that brings in default roles to content_access.settings.yml and unfortunately clears custom roles on the site from that list.
This patch helped, though it didn't apply cleanly and there was some issue with the grants section not working properly and causing access denied for all roles. I was able to use the part where it rescans roles and added it to my configuration syncing code, so hopefully it won't continue being an issue for me even without this patch. But I can at least confirm that it's an ongoing issue for some configuration syncing setups.
- @just_like_good_vibes opened merge request.
- π«π·France just_like_good_vibes PARIS
Hello,
i tried to update the old patch to be in sync with the current version of the module in git (8.x-1.x).
I created a fork repository and i opened a merge request.
the patch can be retrievd there : https://git.drupalcode.org/project/content_access/-/merge_requests/7.patch
i am now working on the migration to drupal10 of the website that originally raised this issue and required this patch to work.
I will therefore be able to test this patch in the coming weeks/months on that particular website. - Status changed to Needs work
almost 2 years ago 10:43am 28 April 2023 - π³π΄Norway gisle Norway
All feature requests go into the most recent branch.
Will need reroll for version 2.0.x-dev. - last update
almost 2 years ago Patch Failed to Apply - last update
almost 2 years ago Patch Failed to Apply I am also running into this issue and am trying to use #8 to fix the warning dumps happening. We have many roles defined by a team of content managers and users are seeing these warnings all the time. I upgraded to 8.x-1.0-alpha4 that was supposed to have a fix and one warning stopped and another one started in the content_access_optimize_grants call because the fix was to return a null if not found. I think this patch works better because it tries to fix the missing ids and clean out old grants with no id, since I can't imagine those are useful. I am on Drupal 9.4 and slowly upgrading to hopefully 10.X in the end. Going to run this one for a while and see how it goes seems to be working so far in testing.