/** * @return bool */ public function checkRight() { if ($this->xoops->isUser()) { $this->xoops->module = $this->xoops->getModuleByDirname('system'); if (!$this->xoops->user->isAdmin($this->xoops->module->mid())) { return false; } } else { return false; } return true; }