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?

Files: 
CommentFileSizeAuthor
#4 administerusersbyrole-add_drupal_alter-1953576-4.patch585 bytesrussellb
PASSED: [[SimpleTest]]: [MySQL] 1,141 pass(es).
[ View ]
administerusersbyrole-add_api_hooks.patch3.16 KBMD3
FAILED: [[SimpleTest]]: [MySQL] 1,129 pass(es), 6 fail(s), and 0 exception(s).
[ View ]

Comments

Status:Needs review» Needs work

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

Second this, I need to do some custom access.

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.

StatusFileSize
new585 bytes
PASSED: [[SimpleTest]]: [MySQL] 1,141 pass(es).
[ View ]

Patch adding Drupal alters to allow custom permissions.

Status:Needs work» Needs review

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