Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
019c70b9
Commit
019c70b9
authored
Jan 26, 2017
by
Côme Chilliet
Browse files
Fixes
#5357
Do not empty groups when applying roles and groups tab template
parent
466f391f
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/personal/roles/class_userRoles.inc
View file @
019c70b9
...
...
@@ -315,16 +315,12 @@ class userRoles extends simplePlugin
if
(
isset
(
$this
->
attrs
[
'userGroups'
]))
{
unset
(
$this
->
attrs
[
'userGroups'
][
'count'
]);
$this
->
groupsMembership
=
$this
->
attrs
[
'userGroups'
];
}
else
{
$this
->
groupsMembership
=
array
();
}
$this
->
savedRolesMembership
=
$this
->
rolesMembership
;
if
(
isset
(
$this
->
attrs
[
'userRoles'
]))
{
unset
(
$this
->
attrs
[
'userRoles'
][
'count'
]);
$this
->
rolesMembership
=
$this
->
attrs
[
'userRoles'
];
}
else
{
$this
->
rolesMembership
=
array
();
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment