OEModule\OphCoCvi\components\OphCoCvi_API::canUpdate PHP Method

canUpdate() public method

public canUpdate ( $event_id ) : boolean
$event_id
return boolean
    public function canUpdate($event_id)
    {
        if ($event = \Event::model()->findByPk($event_id)) {
            return $this->getManager()->canEditEvent($event);
        }
        return false;
    }