Skip to content

Commit afe1a75

Browse files
committed
✨ Feat(posix)
Apply group from template Apply group from template.
1 parent 8671918 commit afe1a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posix/personal/posix/class_posixAccount.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ class posixAccount extends simplePlugin
620620
return $errors;
621621
}
622622

623+
// This allows to add new groups asignment on top of existing one !
623624
if (!$this->is_template && !class_available('mixedGroup')) {
624625
/* Take care about groupMembership values: add to groups */
625626
$groupMembership = $this->attributesAccess['groupMembership']->getValue();
@@ -715,7 +716,6 @@ class posixAccount extends simplePlugin
715716
$this->attributesAccess['mustchangepassword']->setInLdap(FALSE);
716717
$this->attributesAccess['groupMembership']->setInLdap(FALSE);
717718

718-
$this->savedGroupMembership = $this->groupMembership;
719719
if (isset($this->attrs['posixGroups'])) {
720720
unset($this->attrs['posixGroups']['count']);
721721
$this->groupMembership = $this->attrs['posixGroups'];

0 commit comments

Comments
 (0)