When I activate the module role_delegation, the module role_limits doesn't work.
It's because role_limits controls the number of users when "activate" is a parameter of the hook_user.
So, all is working if I replace the code :

/**
 * Implementation of hook_user().
 */
function role_delegation_user($op, &$edit, &$account, $category = NULL) {
  if ($op != 'insert' && $op != 'submit' ) {
    return;
  } 

with:

/**
 * Implementation of hook_user().
 */
function role_delegation_user($op, &$edit, &$account, $category = NULL) {
  if ($op != 'insert' && $op != 'submit' && $op != 'validate') {
    return;
  } 

Comments

David Lesieur’s picture

Status: Active » Needs work

This breaks Role Delegation because checks in user_profile_form_validate() prevent hook_user() implementations from adding the 'roles' key to $edit during validation if the user does not have the permission to 'administer permissions'.

benjy’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Drupal 6 support has now been dropped.