Closed (fixed)
Project:
Protect Critical Users
Version:
5.x-1.0-beta1
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2008 at 13:26 UTC
Updated:
25 Nov 2008 at 14:13 UTC
This seems like a great module! Could you by any chance make a version of this for Drupal 5?
Thanks!
Comments
Comment #1
markus_petrux commentedOk, 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.
Comment #2
markus_petrux commentedOops! 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.
Comment #3
markus_petrux commentedOk, already tested.
Comment #4
markus_petrux commentedComment #5
slinc commentedThanks!