Hello,
First of all, thank you for your support y apreciatte your work. I have installed the module and setting a limit, however the site administrator can create an account:
Usuario creado
Aditionally the user counts had increased
Configuración role limit
Finally, my drupal version is 7.14 and I noticed that the hook_alter add $form['registration']['user_register']['#disabled'] = TRUE; but I find in http://api.drupal.org/api/drupal/modules!user!user.admin.inc/function/user_admin_settings that the correct form is $form['registration_cancellation']['user_register']

CommentFileSizeAuthor
role limit settings.jpg21 KBgouky10
created user.jpg18.31 KBgouky10
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webkenny’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Hi there,

Is the issue that someone with "administer users" can bypass the role limit? That is by design otherwise you'd be locked out of your own site. Am I understanding correctly?

gouky10’s picture

Yes in my case there are 2 roles whit that permission administrator and local administrator, Is there any way to stop the local adminstrator create more users?

webkenny’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Unfortunately, "administer users" bypasses all user restrictions so your option would to revoke the permission from the role and then find other ways to grant your "local administrator" the permissions they need on a more granular basis.

Hope that helps.