Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-plugins
Commits
afe1a753
Verified
Commit
afe1a753
authored
3 months ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
Feat(posix)
Apply group from template Apply group from template.
parent
8671918d
dev
6332-zimbra-allows-update-of-data-for-unknown-domain-name-for-specific-individual-aliases
6337-webservice-issue-with-archiving-post-request-not-responding-but-successfully-archiving-user
6341-supann-extract-resources-states-sub-states-from-backend-configuration-to-their-own-objects
master
fusiondirectory-1.5
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
posix/personal/posix/class_posixAccount.inc
+1
-1
posix/personal/posix/class_posixAccount.inc
with
1 addition
and
1 deletion
+1
-1
posix/personal/posix/class_posixAccount.inc
+
1
−
1
View file @
afe1a753
...
@@ -620,6 +620,7 @@ class posixAccount extends simplePlugin
...
@@ -620,6 +620,7 @@ class posixAccount extends simplePlugin
return
$errors
;
return
$errors
;
}
}
// This allows to add new groups asignment on top of existing one !
if
(
!
$this
->
is_template
&&
!
class_available
(
'mixedGroup'
))
{
if
(
!
$this
->
is_template
&&
!
class_available
(
'mixedGroup'
))
{
/* Take care about groupMembership values: add to groups */
/* Take care about groupMembership values: add to groups */
$groupMembership
=
$this
->
attributesAccess
[
'groupMembership'
]
->
getValue
();
$groupMembership
=
$this
->
attributesAccess
[
'groupMembership'
]
->
getValue
();
...
@@ -715,7 +716,6 @@ class posixAccount extends simplePlugin
...
@@ -715,7 +716,6 @@ class posixAccount extends simplePlugin
$this
->
attributesAccess
[
'mustchangepassword'
]
->
setInLdap
(
FALSE
);
$this
->
attributesAccess
[
'mustchangepassword'
]
->
setInLdap
(
FALSE
);
$this
->
attributesAccess
[
'groupMembership'
]
->
setInLdap
(
FALSE
);
$this
->
attributesAccess
[
'groupMembership'
]
->
setInLdap
(
FALSE
);
$this
->
savedGroupMembership
=
$this
->
groupMembership
;
if
(
isset
(
$this
->
attrs
[
'posixGroups'
]))
{
if
(
isset
(
$this
->
attrs
[
'posixGroups'
]))
{
unset
(
$this
->
attrs
[
'posixGroups'
][
'count'
]);
unset
(
$this
->
attrs
[
'posixGroups'
][
'count'
]);
$this
->
groupMembership
=
$this
->
attrs
[
'posixGroups'
];
$this
->
groupMembership
=
$this
->
attrs
[
'posixGroups'
];
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets