Related to issue #366950: "Administer Users" permission should be separate from "Administer Account Settings".

The permission titles for "administer users" and "administer user settings" are way too similar. They also don't have descriptions and may be confusing when viewed at the Permissions admin page. Verbose descriptions should be added to document the differences and help users.
Possible description texts are already suggested in this comment in the original issue.
There is a similar issue to this one, which may be helpful as a reference:
#1365234: Add description to "access content overview" permission

Opening issue currently in postponed state, awaiting the original issue to be commited.
Also is suggested to tag issue with "needs text review" and "needs usability review" to attract UX wisemen when set to active.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tstoeckler’s picture

Over in #366950-64: "Administer Users" permission should be separate from "Administer Account Settings" I proposed:

Administer users
Manage all user accounts. This includes editing all user information, including e-mail addresses and passwords, issuing e-mails to users and blocking and deleting user accounts.

Administer user settings
Manager user settings, such as the registration and cancellation methods, the text of user e-mails, and fields attached to users.

babruix’s picture

Attaching patch (currently includes permissions adding too as well as descriptions) and screenshot with how it looks on permissions page.

babruix’s picture

Oh looks we need to wait until #366950 get committed.

amontero’s picture

Status: Postponed » Active

Linked issue got commited.

Ivan Zugec’s picture

Status: Active » Needs review
FileSize
1.11 KB

The attached patch changes the description for the "Administer users" and "Administer account settings" using the text from the first comment.

Also, take note that "Administer user settings" is now "Administer account settings".

scull1916’s picture

tstoeckler’s picture

Status: Needs review » Needs work

Thanks, that looks great. Sadly, I had a typo in my suggestion above :-/

+++ b/core/modules/user/user.module
@@ -478,11 +478,12 @@ function user_permission() {
+      'description' => t('Manager <a href="@url">user settings</a>, such as the registration and cancellation methods, the text of user e-mails, and fields attached to users.', array('@url' => url('admin/config/people'))),

Manager -> Manage

Ivan Zugec’s picture

Status: Needs work » Needs review
FileSize
1.11 KB

Not a problem. :) Patch fixes typo.

tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, looks great!

babruix’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
2.03 KB

New patch changes url() to \Drupal::url and @ to ! in placeholders.

Status: Needs review » Needs work

The last submitted patch, user_permission_descriptions-1813488-10.patch, failed testing.

babruix’s picture

Assigned: Unassigned » babruix
babruix’s picture

Assigned: babruix » Unassigned
Status: Needs work » Needs review
babruix’s picture

Status: Needs review » Needs work

The last submitted patch, user_permission_descriptions-1813488-14.patch, failed testing.

babruix’s picture

Status: Needs work » Needs review
FileSize
2.1 KB

For some reason, using \Drupal::url() throws exception in 2 Views tests:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupaltestbotmysql.simpletest667529router' doesn't exist

, so generated URL by calling \Drupal::urlGenerator()->generateFromPath() . Or any ideas how to fix problems with Views tests? Link...

parthipanramesh’s picture

I have the same problem. Any ideas?

selwynpolit’s picture

xadag’s picture

Issue summary: View changes
Status: Needs review » Needs work

Hi,

I've tried to review this issue but as the patch is very old (2013), far away from the beta1, i saw that hook_permissions no longer exist in the API so the patch will not be valid at all now (maybe i'm wrong).

I saw that definition of permissions moved to a yml file

Also the name of permission administer users and administer users settings move to administer users and Administer account settings i guess.

So work will be do on that initial need, maybe create a new patch from the yml file with the descriptions from the older patch.

Sorry if i missunderstood something, i'm a beginner in drupal contribution :)

xadag’s picture

Issue tags: +Amsterdam2014
legolasbo’s picture

legolasbo’s picture

Status: Needs work » Needs review
jsobiecki’s picture

Issue tags: -Amsterdam2014 +dcwroc2014
quietone’s picture

FileSize
29.23 KB

Nice, works for me.

Before:
Before

After applying patch:
After

quietone’s picture

FileSize
22.63 KB

Just the upload for one of the images above

legolasbo’s picture

Issue tags: +Amsterdam2014

Restoring the amsterdam2014 tag for historic analytics purposes.

gugalamaciek’s picture

Assigned: Unassigned » gugalamaciek
gugalamaciek’s picture

Assigned: gugalamaciek » Unassigned
FileSize
993 bytes

I reviewed this propositions and have some suggestions about text descriptions.

Administer users
Manage all user accounts. This includes editing all user information, changes of e-mail addresses and passwords, issuing e-mails to users, blocking and deleting user accounts.

My comment: Small styling changes.

Administer account settings
Configure site-wide settings and behavior for user accounts and registration. This includes account cancellation methods, the content of user e-mails and fields attached to users.

My comment: Here, for me, the most important think is that this settings and behaviurs are user account site-wide settings. This has been removed in changed comment and I restored it im my proposition. This may be obvious for someone, who used Drupal, but for novice I think this is good to stay with 'site-wide' information.

I've attached patch with this changes.

jsobiecki’s picture

+1 From me. From technical perspective it's only update of single .yml file.

Description is clear enough.

jsobiecki’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Needs review
+++ b/core/modules/user/user.permissions.yml
@@ -3,10 +3,11 @@ administer permissions:
+  description: 'Manage all user accounts. This includes editing all user information, changes of e-mail addresses and passwords, issuing e-mails to users, blocking and deleting user accounts.'

I think this should be Manage all user accounts. This includes editing all user information, changes of e-mail addresses and passwords, issuing e-mails to users and blocking and deleting user accounts. Since "issuing e-mails to users" and "blocking and deleting user accounts" are the separate list items and we don't use the Oxford comma.

quietone’s picture

I agree with ngwebs that using "site-wide" is a better option.

Here's the patch without the oxford comma and the interdiff (my first)

And, since I'm into screenshots at the moment.

zaporylie’s picture

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 5a53811 and pushed to 8.0.x. Thanks!

  • alexpott committed 5a53811 on 8.0.x
    Issue #1813488 by babruix, Ivan Zugec, quietone, ngwebs, legolasbo |...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.