Prevent (root admin) to be deleted

by theezy - 30-01-2015, 08:15 AM
Closed Account
Posts:
214
Joined:
Jan 2015
Likes:
9
Credits:
120
Reputation:
7
3 Years of Service
#1
OP
Posted: 30-01-2015, 08:15 AM
Open file: adminapplicationsmembersmodules_adminmembersmembers.php
Find: by pressing CTRL+ F

Code:
$ids = IPSLib::cleanIntArray( $ids );

Add above:

Code:
if( in_array( 1, $ids ) ) { $this->registry->output->global_message = "Can't remove main admin account. Sorry."; $this->request['do'] = 'members_list'; $this->_memberList(); return; }
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)