fixed management of special groups

This commit is contained in:
Roland Gruber 2005-12-17 12:11:51 +00:00
parent fa3cefd455
commit a5df2be6a3
1 changed files with 6 additions and 4 deletions

View File

@ -418,10 +418,12 @@ class sambaGroupMapping extends baseModule {
// Get Domain SID
$this->attributes['sambaSID'][0] = $SID."-".$this->rids[$rids[$i]];
// Do a check if special group is unique
if ($_SESSION['cache']->in_cache($SID."-".$this->rids[$rids[$i]], 'sambaSID', 'group')) {
$message = $this->messages['sambaSID'][0];
$message[] = $rids[$i];
$triggered_messages['sambaSID'][] = $message;
if ($_SESSION[$this->base]->isNewAccount) {
if ($_SESSION['cache']->in_cache($SID."-".$this->rids[$rids[$i]], 'sambaSID', 'group')) {
$message = $this->messages['sambaSID'][0];
$message[] = $rids[$i];
$triggered_messages['sambaSID'][] = $message;
}
}
}
}