/** * Check if a hd grant has been received for a record * * @param \record_adapter $record * @return boolean */ public function has_preview_grant(RecordInterface $record) { $this->load_hd_grant(); if (array_key_exists($record->getId(), $this->_rights_records_preview)) { return true; } return false; }