forked from science-ation/science-ation
Fix for a bug in deleting an account. Code was checking for a parameter that wasn't applicable to deleting an account, and wouldn't allow it to happen as a result.
This commit is contained in:
parent
5c5c3e55ec
commit
e746f5faab
@ -48,7 +48,7 @@ if($eid != $_SESSION['users_id']) {
|
||||
$u = user_load($eid);
|
||||
|
||||
/* Validate the type */
|
||||
if($_GET['action'] != '') {
|
||||
if($_GET['action'] != '' && $_GET['action'] != 'delete') {
|
||||
$action_type = $_GET['type'];
|
||||
if(!in_array($action_type, $user_types)) {
|
||||
echo "ERROR: not an allowed type.";
|
||||
|
Loading…
Reference in New Issue
Block a user