08-19-2016, 07:09 PM
Ahh. That makes sense. It would be super easy to add a button that says something like this:
That would essentially let them ban themselves. It would leave all their data in the db in case they changed their mind and is probably the best way to avoid breaking things.
Code:
$db->update('users',$user->data()->id,'permissions'=>0);
That would essentially let them ban themselves. It would leave all their data in the db in case they changed their mind and is probably the best way to avoid breaking things.