* @param GET user_id */ if (!userIsAllowed('Users')) { $_SESSION['errorMessages'][] = new Exception('noAccessAllowed'); header('Location: '.BASE_URL); exit(); } $user = new User($_GET['user_id']); $user->delete(); header('Location: '.BASE_URL.'/users');