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

Merge branch 'cherry-pick-92146c95' into '1.3-fixes'

Merge branch '5918-sinaps-acquisition-couldn-t-be-sent-...' into '1.3-fixes'

See merge request fusiondirectory/fd-plugins!533
parents 33753f47 7d16326a
...@@ -278,6 +278,16 @@ class sinapsRequest ...@@ -278,6 +278,16 @@ class sinapsRequest
break 2; break 2;
} }
if (in_array_ics((string)$role->externe->typeExterne, $userRoleExists[(string)$role->typeRole])) { if (in_array_ics((string)$role->externe->typeExterne, $userRoleExists[(string)$role->typeRole])) {
if (!empty($role->externe->identifiantStructureInterne)) {
/* Store identifiantStructureInterne in supannEntiteAffectationPrincipale */
$UUID = (string)$role->externe->identifiantStructureInterne;
$entite = $ldapUuidToCodeEntiteCallback($UUID);
if (isset($entite['supannTypeEntite'])) {
$values['supannAccount']['supannTypeEntiteAffectation'][] = $entite['supannTypeEntite'];
}
$values['supannAccount']['supannEntiteAffectation'][] = $entite['supannCodeEntite'];
$values['supannAccount']['supannEntiteAffectationPrincipale'] = $entite['supannCodeEntite'];
}
$deletion = FALSE; $deletion = FALSE;
break 2; break 2;
} }
......
Supports Markdown
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