OEModule\OphCoCvi\controllers\DefaultController::checkEditAccess PHP Method

checkEditAccess() public method

public checkEditAccess ( ) : boolean
return boolean
    public function checkEditAccess()
    {
        if ($this->event->isNewRecord) {
            // because we are using this check for clinical edit access checks, we need to handle new events as well
            return $this->checkCreateAccess();
        } else {
            return !$this->getManager()->isIssued($this->event) && $this->checkAccess('OprnEditCvi', $this->getApp()->user->id, array('firm' => $this->firm, 'event' => $this->event));
        }
    }