This seems like a great module! Could you by any chance make a version of this for Drupal 5?

Thanks!

Comments

markus_petrux’s picture

Version: 6.x-1.1 » 5.x-1.0-beta1
Status: Active » Needs review

Ok, here it is:

http://drupal.org/node/336923

It's beta because I just wrote it, but I could not test it right now. Please, confirm if it works, but please don't try on a production site. When this module installed, you should not be able to delete user 1 and current user using /user/1/delete, and from admin/user/user either.

Difference between this one and the version for Drupal 6, is that in Drupal 5, user 0 cannot be deleted, so this one is not protected here.

markus_petrux’s picture

Oops! Just notided one small bug. Please, be aware of this commit. The $form_id for the user edit form in Drupal 5 is different than the one used in Drupal 6, which is the code I used to write the backport.

Anyway, the beta1 package can still be tested. Just apply the same change as in the referred commit.

markus_petrux’s picture

Status: Needs review » Fixed

Ok, already tested.

markus_petrux’s picture

Status: Fixed » Closed (fixed)
slinc’s picture

Thanks!