/** * Checks whether this request has the specified rights * * @param EntitySetRights $requiredRights The rights to check * * @return void * * @throws ODataException exception if access to this resource set is forbidden */ public function checkResourceSetRights($requiredRights) { if (($this->_resourceSetRights & $requiredRights) == 0) { ODataException::createForbiddenError(); } }