From 82b43457803b3926f82741837bac5098462a4e81 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 5 Apr 2005 11:43:19 +0000 Subject: [PATCH] fixed display of homedir checkbox on account deletion --- lam/lib/modules/posixAccount.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index e74c28d5..0d569d80 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -855,10 +855,11 @@ class posixAccount extends baseModule { } function display_html_delete(&$post) { - if ($_SESSION[$this->base]->type=='user' && isset($_SESSION['config']->scriptPath)) { - $return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Delete home directory') ), - 1 => array ( 'kind' => 'input', 'name' => 'deletehomedir', 'type' => 'checkbox'), - 2 => array ('kind' => 'help', 'value' => 'deletehomedir')); + if ($this->scope == 'user' && isset($_SESSION['config']->scriptPath)) { + $return[] = array ( + 0 => array('kind' => 'text', 'text' => _('Delete home directory')), + 1 => array('kind' => 'input', 'name' => 'deletehomedir', 'type' => 'checkbox'), + 2 => array('kind' => 'help', 'value' => 'deletehomedir')); } return $return; }