public function checkIsEnabled() { if (!$this->isEnabled()) { throw new Exception(Piwik::translate('General_ExceptionReportNotEnabled')); } }
public function renderReportWidget(Report $report) { Piwik::checkUserHasSomeViewAccess(); $this->checkSitePermission(); $report->checkIsEnabled(); return $report->render(); }