fixed display of homedir checkbox on account deletion
This commit is contained in:
parent
26c9bb756e
commit
82b4345780
|
@ -855,10 +855,11 @@ class posixAccount extends baseModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
function display_html_delete(&$post) {
|
function display_html_delete(&$post) {
|
||||||
if ($_SESSION[$this->base]->type=='user' && isset($_SESSION['config']->scriptPath)) {
|
if ($this->scope == 'user' && isset($_SESSION['config']->scriptPath)) {
|
||||||
$return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Delete home directory') ),
|
$return[] = array (
|
||||||
1 => array ( 'kind' => 'input', 'name' => 'deletehomedir', 'type' => 'checkbox'),
|
0 => array('kind' => 'text', 'text' => _('Delete home directory')),
|
||||||
2 => array ('kind' => 'help', 'value' => 'deletehomedir'));
|
1 => array('kind' => 'input', 'name' => 'deletehomedir', 'type' => 'checkbox'),
|
||||||
|
2 => array('kind' => 'help', 'value' => 'deletehomedir'));
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue