public function checkPerm() { $mu_id = $this->auth->getParam('mu_id'); $this->act = $mu_id == '' ? $this->act : 'show'; $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)); } if (!in_array($this->act, array('list', 'add'))) { if ($mu_id != '' && $this->id == '') { // Nothing do check } else { R3Security::checkGlobalStrategy($this->id); } } }