In Account Settings an administrator sets up a special name for anonymous users. Yet, on the Permissions page the table header is Anonymous User no matter what the value of this field is. It might make more sense to change this heading to match the value typed in the Account Settings Field. For example, if the admin uses "Guest" as the name for anonymous users, then the Permissions page would use "Guest" as the table header, reflecting the chosen name of this role.
Comment | File | Size | Author |
---|---|---|---|
#11 | 210458391-cd949cd5-c378-44c7-bb8c-2638cf5a8c6e.png | 26.28 KB | klonos |
#10 | anonymous-user-name-should-be-used-on-permissions-screen-749298-10.patch | 608 bytes | djalxs |
Comments
Comment #1
amc CreditAttribution: amc commentedforgot tag
Comment #2
yoroy CreditAttribution: yoroy commentedcould you check if #228061: Usability UMN: Allow roles to be weighted touches on this please.
Comment #3
amc CreditAttribution: amc commented#228061: Usability UMN: Allow roles to be weighted is a similar issue, but seems more concerned with the order of the columns than the heading names. (Admittedly, there's a bit of talk regarding changing some, like the first comment, but according to the bulk of discussion and the title it's really about the order.) I don't see any mention of alternatives for the anonymous user, either.
If we want to expand this issue into a general "lets rename all the default roles" one, I think that would be fine. (I happen to like the "registered users" suggestion in the other thread.) But the order and the names should probably remain separate but related issues, at least in my mind. Whatever order we present them in should be based on logic and not on whatever the roles are called.
Comment #4
yoroy CreditAttribution: yoroy commentedthanks for investigating. Renaming stuff is not feasible anymore, since strings are frozen. So this issue should focus on the initial request as well: use the custom label for the anonymous role.
Comment #5
amc CreditAttribution: amc commentedComment #8
dpiYou can change the label of the Anonymous role in Drupal 8. The label is correctly reflected to the permissions list.
Moving back to Drupal 7 per #749298-4: Anonymous user name should be used on permissions screen
Comment #9
amit0212 CreditAttribution: amit0212 as a volunteer and commentedDefines the permissions assigned to each role. Typically, you will implement all
permissions for your site in this hook.
This hook takes a $role string as an argument. You should respond with the
appropriate permissions grants for that role. You should only return grants
that are TRUE.
NOTE: The use of isset() is recommended here, since the hook will fire
once per role, and it is possible that your module will not reply in all cases.
NOTE: If configured to do so, the module will return the default permissions
defined by Drupal's installer. Disable the 'Reload default permissions on
rebuild' setting to disable this behavior.
Comment #10
djalxs CreditAttribution: djalxs as a volunteer and commentedHere's a patch that modifies
user_roles()
, however this code would also modify any other places that the function is called, including but not limited to the block & filter modules.Comment #11
klonosThis request is about changing the label of the "Anonymous" role (as shown in the permissions page) to reflect the setting in
/admin/config/people/accounts
. That setting though is meant to describe a user (the special user with UID 0) - NOT to describe the role (the anonymous role label can be changed viaadmin/people/roles/manage/anonymous
). So these aren't the same thing.Also, this statement from #749298-8: Anonymous user name should be used on permissions screen is not true (sort of - I would say that it's just missing the point):
...you can change the label of the role from the role listing/management page, but this issue here is referring to the setting in the "Account settings" form (
/admin/config/people/accounts
). Apples and oranges 😅 ...anyway, since the issue was assigned to D7 based on that comment, re-assigning back to D10, where this is still an issue. Also adding the backport to D7 tag, but I've heard that the process has changed, so if I need to raise a separate issue for D7 do let me know.We've had this discussion in Backdrop-land (see https://github.com/backdrop/backdrop-issues/issues/3511 for details), and we concluded that:
I hope this helps. If we agree on the approach and the wording, I can provide a merge request. Let me know.
Comment #12
smustgrave CreditAttribution: smustgrave at Mobomo commentedThis issue is being reviewed by the kind folks in Slack, #need-reveiw-queue. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge require as a guide.
Tagging for IS as this originally appeared for D7, but what needs to happen for D10 now? So remaining tests.
Also tagging for tests.
Comment #13
Kristen Pol@smustgrave Thanks for updating. This is marked as a Feature request so why does it need tests?
Comment #14
smustgrave CreditAttribution: smustgrave at Mobomo commentedSeems to be adding new functionality. So would need coverage to make sure that functionality never breaks in the future.