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

checkPrintAccess() public method

public checkPrintAccess ( ) : boolean
return boolean
    public function checkPrintAccess()
    {
        if (!$this->getManager()->isIssued($this->event)) {
            return false;
        }
        if ($this->checkAdminAccess()) {
            return true;
        }
        // check that the user has the general edit cvi permission, but not the specific edit permission on
        // the current event.
        return $this->checkAccess('OprnEditCvi', $this->getApp()->user->id);
    }