partially implemented todo tracker
This commit is contained in:
@@ -243,7 +243,7 @@ function delete_account($user_id, $password = null, $verify_password = null)
|
||||
|
||||
exec_stmt('DELETE FROM user WHERE user_id = ?', 'i', $user_id);
|
||||
logout();
|
||||
} else if ($_SESSION['role_id'] <= 2) {
|
||||
} else if ($_SESSION['role_id'] <= admin) {
|
||||
$user = exec_stmt('SELECT user_id, profile_picture FROM user WHERE user_id = ?', 'i', $user_id)->fetch_assoc();
|
||||
|
||||
if ($user['user_id'] == 2025) {
|
||||
|
||||
Reference in New Issue
Block a user