/**
  * @param array $organizationCodes
  *
  * @return bool
  */
 protected function isOrgRestrictionMet(array $organizationCodes)
 {
     if (false === $this->authorizationChecker->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
         return false;
     }
     if (true === $this->authorizationChecker->isGranted('ROLE_ROOT')) {
         return true;
     }
     if (null === $this->orgRepo) {
         return false;
     }
     foreach ($organizationCodes as $code) {
         $organization = $this->orgRepo->findOneByCode($code);
         if (true === $this->authorizationChecker->isGranted('IS_ORGANIZATION_MANAGER', $organization)) {
             return true;
         }
     }
     return false;
 }