Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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:
Aditionally the user counts had increased
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']
Comment | File | Size | Author |
---|---|---|---|
role limit settings.jpg | 21 KB | gouky10 | |
created user.jpg | 18.31 KB | gouky10 |
Comments
Comment #1
webkenny CreditAttribution: webkenny commentedHi 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?
Comment #2
gouky10 CreditAttribution: gouky10 commentedYes 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?
Comment #3
webkenny CreditAttribution: webkenny commentedUnfortunately, "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.