public function checkPerm() { $db = ezcDbInstance::get(); $act = $this->act == 'list' ? 'SHOW' : strToUpper($this->act); $name = strToUpper($this->baseName); if (!$this->auth->hasPerm($act, $name)) { die(sprintf(_("PERMISSION DENIED [%s/%s]"), $act, $name)); } // Extra security R3Security::checkEnergyMeterForBuilding($this->act, $this->bu_id, $this->id, array('method' => $this->method, 'skip_methods' => array('fetchUDM', 'getEnergySourceList', 'getUtilityProductList'))); }