"cancel button was not working in delete user"

This commit is contained in:
Ralf Becker 2007-05-07 08:06:03 +00:00
parent 8b50f4686b
commit 9ff8985ae9

View File

@ -680,7 +680,8 @@
function delete_user() function delete_user()
{ {
if ($GLOBALS['egw']->acl->check('account_access',32,'admin') || $GLOBALS['egw_info']['user']['account_id'] == $_GET['account_id']) if ($GLOBALS['egw']->acl->check('account_access',32,'admin') || $GLOBALS['egw_info']['user']['account_id'] == $_GET['account_id'] ||
$_POST['cancel'])
{ {
$GLOBALS['egw']->redirect($GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.list_users')); $GLOBALS['egw']->redirect($GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.list_users'));
} }