[development] Block user deletion

Earnie Boyd earnie at users.sourceforge.net
Wed Apr 15 12:13:51 UTC 2009


Quoting Nabil Alsharif <nabil at gobrighttree.com>:

> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
>
> The issue is I need some users to be able to edit other users info  
> but not delete them. There is no permission that I can see that  
> allows editing of users profiles but not deleting them. My second  
> guess was to write a module but I don't see anything in the API that  
> will let me control user access the way I need. Neither could I find  
> a way to block the deletion (I know hackish).
>
> Any pointers in the right direction are greatly appreciated.
>


If you can't find a module for this you could create a module that  
uses hook_form_alter and remove the delete button from the form and  
change the access callback and arguments field for the menu to one you  
create.

--
Earnie
-- http://r-feed.com/           -- http://for-my-kids.com/
-- http://www.4offer.biz/       -- http://give-me-an-offer.com/




More information about the development mailing list