Unverified Commit d041fb4d authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(sinaps) Fix user role detection for typeExterne

issue #5918
parent fdb837dc
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment