public function canUpdateRecord($record = null)
    {

        if ($this->dataPermControl == 'Y') {
            $svcObj = Openbizx::getService(OPENBIZ_DATAPERM_SERVICE);
            if (!$record) {
                $record = $this->getActiveRecord();
            }
            $result = $svcObj->checkDataPerm($record, 2, $this);
            if ($result == false) {
                return false;
            }
        }

        $result = $this->canUpdateRecordCondition();
        return $result;
    }
public function canUpdateRecord($record = null)
    {

        if ($this->dataPermControl == 'Y') {
            $svcObj = Openbizx::getService(OPENBIZ_DATAPERM_SERVICE);
            if (!$record) {
                $record = $this->getActiveRecord();
            }
            $result = $svcObj->checkDataPerm($record, 2, $this);
            if ($result == false) {
                return false;
            }
        }

        $result = $this->canUpdateRecordCondition();
        return $result;
    }
public function canUpdateRecord ( $ record = null ) { if ( $ this -> dataPermControl == 'Y' ) { $ svcObj = Openbizx :: getService ( OPENBIZ_DATAPERM_SERVICE ) ; if ( ! $ record ) { $ record = $ this -> getActiveRecord ( ) ; } $ result = $ svcObj -> checkDataPerm ( $ record , 2 , $ this ) ; if ( $ result == false ) { return false ; } } $ result = $ this -> canUpdateRecordCondition ( ) ; return $ result ; }
Check if the current record can be updated

@return boolean
Check if the current record can be updated