Hi,
My situation is that I have many users that belong to a role (let's say "subscribers"), some of those users are grouped in other roles (sub-1, sub-2), some are just "subscribers". I want to create an admin-sub-1 role that is enabled to edit the profile of users belonging to sub-1 role. If I understood correctly, the admin-sub-1 role must be allowed to edit "sub-1" AND "subscribers" roles, which makes him able to edit users that do not belong to its own group but are just "subscribers".

Is it possible to make the default behavior (as stated in the webpage "user doing the editing must have permission to edit ALL of the user being edited's roles") not mandatory but optional? I think a switch that switches AND with OR might be useful.

thanks!
Leonardo.

Files: 

Comments

Status:Active» Patch (to be ported)
StatusFileSize
new1.92 KB

Ok,
I modified the module in order to obtain this behavior. Attached is the patch. I just added a couple of functions to have the configuration menù appear and the _administerusersbyrole_can_edit_user to take into account the configuration parameter once it is set. The default behavior is as intended before.

Is there any chance to have a feedback on this patch proposal?

Status:Patch (to be ported)» Fixed

I wasn't able to get your patch to apply, but I want to use a different technique anyway: instead of making this a global toggleable option, I added some extra permissions: 'edit users with role X and other roles' and 'delete users with role X and other roles'. Granting the 'and other roles' permission allows editing the user regardless of other roles the user has.

Committed to 6.x-1.x-dev as http://drupalcode.org/project/administerusersbyrole.git/commit/6ff564ebe....

Status:Fixed» Closed (fixed)

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