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
fd-plugins
Commits
d041fb4d
Unverified
Commit
d041fb4d
authored
May 09, 2019
by
Côme Chilliet
Browse files
🚑
fix(sinaps) Fix user role detection for typeExterne
issue #5918
parent
fdb837dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
sinaps/include/class_sinapsRequest.inc
View file @
d041fb4d
...
...
@@ -261,7 +261,7 @@ class sinapsRequest
/* Check if the user still has at least one role which means he exists, otherwise this is a deletion */
$userRoleExists
=
[];
foreach
(
$userRoles
as
$typeRole
)
{
if
(
preg_match
(
'^([^/]+)/(.+)$'
,
$typeRole
,
$m
))
{
if
(
preg_match
(
'
|
^([^/]+)/(.+)$
|
'
,
$typeRole
,
$m
))
{
$userRoleExists
[
$m
[
1
]][]
=
$m
[
2
];
}
else
{
$userRoleExists
[
$typeRole
]
=
TRUE
;
...
...
Git Mirror User
@gitmirror
mentioned in commit
f87f4205
·
May 09, 2019
mentioned in commit
f87f4205
mentioned in commit f87f42055fdc112dd3a9003a40799e9d51eee8ce
Toggle commit list
Write
Preview
Markdown
is supported
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