Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As indicated, the user_help() documentation says there are two default roles.
Comment | File | Size | Author |
---|---|---|---|
#27 | user_uitext.patch | 2.28 KB | lisarex |
#27 | after_roles_uitext.png | 8.67 KB | lisarex |
#25 | roles_uitext_25.patch | 2.56 KB | lisarex |
#22 | roles_uitext_22.patch | 2.57 KB | lisarex |
#22 | after_roles22.png | 28.83 KB | lisarex |
Comments
Comment #1
agentrickardThe attached patch does the following:
-- Adds 'administrator' to the roles list.
-- Removes capitalization from the roles, so they match the form labels.
-- Adds
<strong>
emphasis to the role names to make up for the lack of capitalization.Comment #2
agentrickardScreenshots, for easier reviewing.
Comment #3
lisarex CreditAttribution: lisarex commented#616108 by agentrickard: Fixed user_help() lists only two default roles.
Hi, here's my comments :)
In addition to security and administration, this is also for controlling access to content? If yes, could be added here (or moved to the permissions page where it's needed more) but somehow I think we could lose the first sentence altogether for brevity.
The link says 'user permissions' but it just says 'permissions' in the site (unless this is changing?)
'By default, Drupal comes with' should probably now say 'By default, your site comes with' following the best practices listed at #604342
It would be consistent & clearer the average person to say 'not logged in' rather than authenticated.
I'm on crack. Are you, too?
What?
Comment #4
lisarex CreditAttribution: lisarex commentedActually, the UX guys have been suggesting we remove all extra text (and the interface will be intuitive such as the edit links. The only thing this page needs to say is "Define the roles for your site. Examples of roles include: anonymous user, authenticated user, moderator and administrator."
Comment #5
agentrickardWorks for me.
Comment #6
lisarex CreditAttribution: lisarex commentedPatch rerolled. Kept in link to user permissions, but added correct link to it.
Comment #8
lisarex CreditAttribution: lisarex commentedPatch take 2.
Comment #9
lisarex CreditAttribution: lisarex commentedchanging status
Comment #10
agentrickardThe last patch removed too much (including fields, display, and search help text). We are only trying to change 'admin/config/people/permissions', not the other sections.
Comment #11
lisarex CreditAttribution: lisarex commentedPatch applied and works great. Thanks agentrickard.
Comment #12
agentrickardYou can RTBC it, then. (I can't RTBC my own patch.)
Comment #13
Bojhan CreditAttribution: Bojhan commentedAgreed, by adding this administer role to the list - the list of roles sumed up is becoming to large. It was never meant to scale, and I believe the three you see, is obvious enough to trigger the "ohh these are the defaults" mind.
Comment #14
webchickCouple of small bugs:
1. The p tag should be outside the string like the help for admin/config/people/permissions is. I realize the old string was like that too, but that was because the string included a bulleted list, which it no longer does.
2. There should be a comma after "moderator" (oxford comma ftw)
3. There's an extra space at the end of the string that needs to be removed.
I'm also unsure if the built-in anonymous and authenticated roles are self-explanatory enough to warrant obliterating their descriptions altogether, but I guess now that the permissions page auto-checks perms, that helps.
I'm also not clear on why 3 of the 4 of the examples are built-in roles. They can see those already in the table below. Why not give them examples that don't exist yet (moderators is a good one, is there another?) to help guide them in making sensible naming choices?
Comment #15
Bojhan CreditAttribution: Bojhan commentedPerhaps less examples, is also alright. Something like : Moderator, Editor ?
Comment #16
lisarex CreditAttribution: lisarex commentedOK, rerolled with the suggestions from webchick and bojhan, and a few other things such as removing the phrase 'your site' which is yoroy's favorite. ;-)
It looks as if this patch has a lot of extra text in it, but it's not actually altering. I can try rerolling if there's an issue with this one.
Comment #17
lisarex CreditAttribution: lisarex commentedComment #18
dcor CreditAttribution: dcor commentedGood job everyone! Looks clean and does what it says!
Comment #19
dcor CreditAttribution: dcor commentedActually, I have to change my comment... the patch needs to integrate the comments from #10.
Comment #20
Bojhan CreditAttribution: Bojhan commentedFixed that
Comment #22
lisarex CreditAttribution: lisarex commentedStarted over and rerolled .... have kept in the role descriptions but shorted the text...
Comment #23
dcor CreditAttribution: dcor commentedA role defines a group of users with privileges specified in permissions.... Just to shorten the text and keep things as simple as possible.
I think "Examples of roles include editor or moderator" should be left out. Unless you've a more complex site, generally you're not even going to create a new role... and given the descriptions of the following - is it really necessary to give further examples? That said, if everyone thinks its necessary... then leave it in. ;)
Anonymous user: This role is used for users who are not authenticated via a user account.
Authenticated user: Any user authenticated via logging in with a user account.
Administrator: This role is granted all or most permissions by default and should be assigned with consideration.
I'm on crack. Are you, too?
See comments above, rewording...
Comment #24
Bojhan CreditAttribution: Bojhan commented@dcor Don't get why you are commenting on removed lines?
What about "A role defines a group of users with certain privileges specified in permissions." I think the certain part adds value, it implies specific, accurate. Also the example is fine, although your argument stands - if you don't use it, you wont read this text anyway, so lets leave it in for the large group of those who this would benefit too.
Comment #25
lisarex CreditAttribution: lisarex commentedRerolled with suggestions from Bojhan --- can we mark as RTBC?
Comment #26
Bojhan CreditAttribution: Bojhan commentedNot sure why the default roles are introduced again in this patch, #14 webchick outlined with some hesitation that she agrees with removing them?
Comment #27
lisarex CreditAttribution: lisarex commentedThey were also in patch in #22. OK, Removed, rerolled. :)
Comment #28
Bojhan CreditAttribution: Bojhan commentedRTOTHEBC!
Comment #29
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!