The original Sandbox Port of Administer Users By Roles D7 had two API options to allow other modules to extend the default user edit/cancel access.

I would like to propose adding these hooks back into the module. Thoughts? Questions?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, administerusersbyrole-add_api_hooks.patch, failed testing.

russellb’s picture

Second this, I need to do some custom access.

russellb’s picture

Status: Needs review » Needs work

I think drupal_alter would be better here:

drupal_alter('administerusersbyrole_can_edit', $allow, $account);

..

drupal_alter('administerusersbyrole_can_cancel', $allow, $account);

Then the module intervening gets to find out adminusersbyrole's decision, and it removes the extra logic.

russellb’s picture

Patch adding Drupal alters to allow custom permissions.

russellb’s picture

Status: Needs work » Needs review
russellb’s picture

Issue summary: View changes
Status: Needs work » Needs review
AdamPS’s picture

Status: Needs review » Needs work

If anyone wants to rework this for the 2.x branch then I would be willing to apply it.

AdamPS’s picture

Status: Needs work » Closed (outdated)

The new 3.x branch allows something roughly equivalent.