How to disable deletion of user with ID 1

unwiredbrain - September 8, 2009 - 16:52

Hi to the whole Drupal community.

Is there a way to prevent a "administer users"-enabled role from deleting the admin account -- namely, user with ID 1?

In other words;
I need to give to a specific user (or to a specific role) enough rights to add and delete users.
I do so by enabling the "administer users" option for that role in the Permissions page.
Suddenly, that role can delete the admin user.

How can I prevent this?

Thanks in advance
--
unwiredbrain

The User Protect module will

setfree - September 8, 2009 - 16:58

The User Protect module will handle this.

Thanks

unwiredbrain - September 9, 2009 - 17:53

Thanks! :)

By the way, it in the Related Projects of User Protect I found Protect Critical Users, which perfectly fits my needs.

I'm really thankful: I would never be able to find it without your input.

 
 

Drupal is a registered trademark of Dries Buytaert.