/** * @param $ref int the reference id of the current datacollection object * @param $record ilDataCollectionRecord the record which will be deleted * @return bool */ public function hasPermissionToDeleteRecord($ref, $record) { return $this->getDeletePerm() && ilObjDataCollection::_hasReadAccess($ref) && $this->checkEditByOwner($record) && $this->checkLimit() || ilObjDataCollection::_hasWriteAccess($ref); }