replaced "Ordinary user" with "-"

This commit is contained in:
Roland Gruber 2004-11-10 15:12:45 +00:00
parent 53aaaf94a9
commit f64a7f1049
2 changed files with 5 additions and 5 deletions

View File

@ -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' ));

View File

@ -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' ));