We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to disable member self delete profile option | Forum

Topic location: Forum home » Support » General Questions
dave Leader
dave Apr 29 '16
How do i disable the ability for members to delete their own account.  


Thanks 


Dave :)

dave Leader
dave Apr 29 '16
lol :)
dave Leader
dave Apr 29 '16
I was just asking, i dont have a member site just a test site, but i was curious if there was an option because i could not find one. 
ross Team
ross May 1 '16
Dave you can hide the delete button via css and restrict /profile-delete url in your htaccess file. 


Or do you just want to get rid of this functionality on your site at all? 

dave Leader
dave May 2 '16

Just learning options in the event someone asks.  So option 1 you covered. Is there an option 2 for ridding  that fuctionality? Or is that special coding.  I know i can do the coding but im just curious if that is option 2?  :)

ross Team
ross May 2 '16
in ow_system_plugins/base/init.php

change the route $router->addRoute(new OW_Route('base_delete_user', 'profile/delete', 'BASE_CTRL_DeleteUser', 'index'));


if they go to profile-delete page directly they'll get 404

dave Leader
dave May 2 '16

or i can just reroute it back to the same page or maybe some zombie website lol  :)


Thanks ross... :) 

The Forum post is edited by dave May 2 '16
ross Team
ross May 2 '16
no problem