Commit dbef4f54 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Filtrage des structures null dans le calcul des superieurs et des autorites

parent 19929a5a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -400,7 +400,6 @@ EOS;
     */
    public function isResponsableS(array $structures, ?Agent $agent)  : bool
    {
        $structures = array_filter($structures, function ($s) { return $s !== null;});
        foreach ($structures as $structure) {
            $result = $this->isResponsable($structure, $agent);
            if ($result) return true;
@@ -435,7 +434,6 @@ EOS;
     */
    public function isAutoriteS(array $structures, ?Agent $agent)  : bool
    {
        $structures = array_filter($structures, function ($s) { return $s !== null;});
        foreach ($structures as $structure) {
            $result = $this->isAutorite($structure, $agent);
            if ($result) return true;