Jump to content

Testing of New user-admin permissions of dev 2.6.10


adrianmak
 Share

Recommended Posts

I'm testing out the new user-admin permissions feature of dev 2.6.10

I followed this blog post http://processwire.com/blog/posts/new-user-admin-permissions-automatic-version-change-detection-and-more-2.6.10/#new-managed-module-versions-by-the-core

to create two permissions

user-admin-all

user-admin-members-manager

post-2272-0-40516900-1437999075_thumb.pn

But, I could not find the new permission in user roles setting page

post-2272-0-62558500-1437999076_thumb.pn

Link to comment
Share on other sites

I think you need page-edit and user-admin roles assigned to a user to be able to st them new granular user-admin-XXX permissions.

From the blog post,

As of ProcessWire 2.6.10, you can now handle this easily by doing the following:

  1. Create a new permission called user-admin-all (Setup > Permission > Add New). You only have to do this once. It is an indicator to ProcessWire that you wish to support granular control for user administration.

  2. Create a new permission with the name user-admin-members (Setup > Permissions > Add New). The format is user-admin-[role], where [role] is the name of any role in your system.

  3. Assign the user-admin-members permission to your members-manager role (Access > Roles > members-manager). Now users with the members-manager role can create, edit and delete users with the members role. They can also assign the members role to users with the guest role (only), or any other users that they have permission to edit (like if you are using more user-admin-[role] permissions for other roles).

     

Link to comment
Share on other sites

You're already highlighting it. The user needs to have the user-admin-role permission, which in turn requires page-edit and user-admin. See "user-admin" as "This role should be able to edit some users, which one I'll tell you later" permission.

Link to comment
Share on other sites

I see. To assign new permission to a role

1. assign "page edit" permission to that role. Save. Then, user-admin permission will be populated on the permission list.

2 assign "user-admin" permission. Save.

3. Eventually, the new permissions will be populated on the list

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...