src/Data/BizDataObj.php
public function canDeleteRecord($record = null)
    {
        if ($this->dataPermControl == 'Y') {
            $svcObj = Openbizx::getService(OPENBIZ_DATAPERM_SERVICE);
            if (!$record) {
                $record = $this->getActiveRecord();
            }
            $result = $svcObj->checkDataPerm($record, 3, $this);
            if ($result == false) {
                return false;
            }
        }

        $result = $this->canDeleteRecordCondition();
        return $result;
    }
public function canDeleteRecord($record = null)
    {
        if ($this->dataPermControl == 'Y') {
            $svcObj = Openbizx::getService(OPENBIZ_DATAPERM_SERVICE);
            if (!$record) {
                $record = $this->getActiveRecord();
            }
            $result = $svcObj->checkDataPerm($record, 3, $this);
            if ($result == false) {
                return false;
            }
        }

        $result = $this->canDeleteRecordCondition();
        return $result;
    }
Check if the current record can be deleted

@return boolean