denyAccessUnlessGranted in controller multiple roles
looking into the method shows how it works
protected function denyAccessUnlessGranted($attributes, $object = null, $message = 'Access Denied.'){ if (!$this->isGranted($attributes, $object)) { throw $this->createAccessDeniedException($message); }}
so you could easily adapt this to your case
in your controller sth. like:
if(!$this->isGranted('ROLE_EDIT', $item) && !$this->isGranted('ROLE_OTHER', $item)){ throw $this->createAccessDeniedException('not allowed');}