method, ['POST', 'GET', 'HEAD'], true)) { return false; } return $this->security->isGranted('ROLE_USER') || $this->security->isGranted('ROLE_ADMIN'); } }