Problem/Motivation
Context condition userroles anonymous and authenticated users stopped working after installing latest dev or updating to 7.x-3.12. Other (own) userroles are working correct, also with 'make role a negative condition' selected.
Steps to reproduce
Select the role anonymous or authenticated as role condition. See that the reactions are not working.
Select a self made role and the reactions are working.
Proposed resolution
Please make userroles anonymous and authenticated users work again as condition. And also for 'make role a negative condition'.
Remaining tasks
-
User interface changes
-
API changes
-
Data model changes
-
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | context-role-names-3222032-8.patch | 789 bytes | santiwww |
| #3 | context-role-names-3222032-3.patch | 678 bytes | dsdeiz |
Comments
Comment #1
Anonymous (not verified) commentedcmseasy created an issue. See original summary.
Comment #2
Anonymous (not verified) commentedI have this problem after updating to 7.x-3.12, I moved back to 7.x-3.11.
Changed issue version to latest 7.x-3.12 and priority to critical.
Comment #3
dsdeiz commentedYeah, experienced the same as well. For my case, it was because of the language. I wonder if it's a similar case.
Context condition for user was expecting the translated role names for "anonymous" and "authenticated" while context list only had untranslated role names.
I've attached the patch if that helps.
Comment #4
Anonymous (not verified) commentedI have a Dutch language site.
The patch did work for custum roles.
Not for anonymous (anonieme gebruiker) and authenticated (geverifieerde gebruiker).
Comment #5
dsdeiz commentedYeah, seems to work for my case. I tested with Dutch. You can try debugging using this:
Comment #6
ron collins commentedContext was failing for anonymous users on the French pages after updating 3.11 to 3.12.
Patch #3 worked for me. Thanks.
Seems like an easy one to get rolled in for next release.
Comment #7
danyg commentedIt's a simple and super solution for the issue, thanks. I can confirm the patch works when you translated the authenticated and/or anonymous role's name. Changed to RTBC
Comment #8
santiwww commentedSometimes (depending on when and how drupal 7 was installed, p.e. after a migration from d6) the names in the roles table are already translated, and because of that the patch #3 does not work.
That's the case in some of my sites sites which were built in spanish in d6 and migrated to d7.
I have created a new patch to force the name in english for authenticated and anonymous roles.
I changed the status to needs review.