public function init() { parent::init(); $notRestrictedActions = array("code"); if (!in_array($this->getParam("action"), $notRestrictedActions)) { $this->checkPermission("qr_codes"); } }
public function init() { parent::init(); $client = Google\Api::getServiceClient(); if (!$client) { die("Google Analytics is not configured"); } $this->service = new Google_Service_Analytics($client); }
public function init() { parent::init(); $this->checkPermission("reports"); }
public function init() { parent::init(); $this->checkPermission("newsletter"); }