I'm using the latest committed version of this project. We have a non-admin role called Account Operator that's used to allow internal non-admins to administer user accounts. We use the Role Delegation module to allow Account Operators to assign only certain roles. For some reason, I cannot get the role summary to appear underneath each role unless I give the Account Operator role the ability to administer permissions which is not desirable.

Should roles without administer permissions be able to view role summaries when creating/editing users?

Thanks for the help!

Comments

rprager created an issue.

rprager’s picture

I was able to resolve this issue by adding additional support for the Role Delegation module. I added the following lines to both the role_help_form_user_profile_form_alter and role_help_form_user_register_form_alter functions.

if (isset($form['account']['roles_change'])) {
  $form['account']['roles_change']['#after_build'][] = 'role_help_role_checkboxes_after_build';
}