/** * Allow READ-ing this resource without access to Source * * @throws Rframe_Exceptions * @param Doctrine_Record $rec * @param string $authz_type */ protected function check_authz(Doctrine_Record $rec, $authz_type) { if ($authz_type != 'read') { parent::check_authz($rec, $authz_type); } }
/** * Ignore authz check for bulk_random operation (only need read) * * @throws Rframe_Exceptions * @param Doctrine_Record $rec * @param string $authz_type */ protected function check_authz(Doctrine_Record $rec, $authz_type) { if ($authz_type == 'write' && $this->bulk_op == 'bulk_random') { //no-op } else { parent::check_authz($rec, $authz_type); } }