From f64a7f10494e851028fc96ce4584e30c8c02a7d7 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 10 Nov 2004 15:12:45 +0000 Subject: [PATCH] replaced "Ordinary user" with "-" --- lam/lib/modules/sambaAccount.inc | 4 ++-- lam/lib/modules/sambaSamAccount.inc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lam/lib/modules/sambaAccount.inc b/lam/lib/modules/sambaAccount.inc index 0ba1b301..ea00734f 100644 --- a/lam/lib/modules/sambaAccount.inc +++ b/lam/lib/modules/sambaAccount.inc @@ -574,8 +574,8 @@ class sambaAccount extends baseModule { $wrid=true; } else $options[] = _('Guest'); - if ($wrid) $options[] = _('Ordinary user'); - else $selected[] = _('Ordinary user'); + if ($wrid) $options[] = "-"; + else $selected[] = "-"; $return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Special user') ), 1 => array ( 'kind' => 'select', 'name' => 'rid', 'options' => $options, 'options_selected' => $selected), 2 => array ( 'kind' => 'help', 'value' => 'rid' )); diff --git a/lam/lib/modules/sambaSamAccount.inc b/lam/lib/modules/sambaSamAccount.inc index 3cdbe62d..64595d1c 100644 --- a/lam/lib/modules/sambaSamAccount.inc +++ b/lam/lib/modules/sambaSamAccount.inc @@ -334,7 +334,7 @@ class sambaSamAccount extends baseModule { if ($_SESSION['cache']->in_cache($SID."-501", 'sambaSID', 'user')!=$_SESSION[$this->base]->dn_orig) $triggered_messages['sambaSID'][] = $this->messages['rid'][1]; } - else if ($post['sambaSID']== _('Ordinary user')) { + else if ($post['sambaSID']== "-") { $this->attributes['sambaSID'][0] = $SID."-". (($_SESSION[$this->base]->module['posixAccount']->attributes['uidNumber'][0]*2)+$RIDbase); } // Check values @@ -542,8 +542,8 @@ class sambaSamAccount extends baseModule { $wrid=true; } else $options[] = _('Guest'); - if ($wrid) $options[] = _('Ordinary user'); - else $selected[] = _('Ordinary user'); + if ($wrid) $options[] = "-"; + else $selected[] = "-"; $return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Special user') ), 1 => array ( 'kind' => 'select', 'name' => 'sambaSID', 'options' => $options, 'options_selected' => $selected), 2 => array ( 'kind' => 'help', 'value' => 'sambaSID' ));