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
ca5bf632
Commit
ca5bf632
authored
Jan 26, 2017
by
Côme Chilliet
Browse files
Fixes #5357 Do not empty groups when applying roles and groups tab template
parent
606d6cb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/personal/roles/class_userRoles.inc
View file @
ca5bf632
...
...
@@ -273,16 +273,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