2009-12-18 12:56:12 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright 2006-2008 City of Bloomington, Indiana
|
2011-06-14 13:29:37 +00:00
|
|
|
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
|
2009-12-18 12:56:12 +00:00
|
|
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
|
|
|
* @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');
|