Commit 400c6c05 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

FIX : Recherche des personnes corrigée dans la recherche avancée pour les responsables de structure

parent 30b0ff0e
Loading
Loading
Loading
Loading
+6 −1
Changes for module/Oscar/src/Oscar/Controller/PersonController.php: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -294,7 +294,12 @@ class PersonController extends AbstractOscarController implements UsePersonServi
            $allow = true;
            $justXHR = false;
        } else {
            $allow = $this->getOscarUserContextService()->hasOneOfPrivilegesInAnyRoles([Privileges::ACTIVITY_PERSON_MANAGE, Privileges::PROJECT_PERSON_MANAGE, Privileges::ORGANIZATION_EDIT]);
            $allow = $this->getOscarUserContextService()->hasOneOfPrivilegesInAnyRoles([
                Privileges::ACTIVITY_PERSON_MANAGE,
                Privileges::PROJECT_PERSON_MANAGE,
                Privileges::ORGANIZATION_EDIT,
                Privileges::ACTIVITY_INDEX,
            ]);
        }

        if (!$allow) {