fixed problem in delete view

This commit is contained in:
Roland Gruber 2014-04-06 16:39:51 +00:00
parent ddf40d1783
commit 03da48ccae
1 changed files with 3 additions and 0 deletions

View File

@ -1499,6 +1499,9 @@ class posixAccount extends baseModule implements passwordService {
$return->addElement(new htmlTableExtendedInputCheckbox('deletehomedir', true, _('Delete home directory'), 'deletehomedir'), true); $return->addElement(new htmlTableExtendedInputCheckbox('deletehomedir', true, _('Delete home directory'), 'deletehomedir'), true);
} }
if (($this->get_scope() == 'user') && in_array('sudo', $_SESSION['config']->get_ActiveTypes())) { if (($this->get_scope() == 'user') && in_array('sudo', $_SESSION['config']->get_ActiveTypes())) {
if ($return == null) {
$return = new htmlTable();
}
$return->addElement(new htmlTableExtendedInputCheckbox('deleteSudoers', true, _('Delete sudo rights'), 'deleteSudoers'), true); $return->addElement(new htmlTableExtendedInputCheckbox('deleteSudoers', true, _('Delete sudo rights'), 'deleteSudoers'), true);
} }
return $return; return $return;