/** * Sets the status of a module. * Therefore you have to be member of the admin-group. * * @permissions edit */ protected function actionModuleStatus() { //status: for setting the status of modules, you have to be member of the admin-group $objModule = new class_module_system_module($this->getSystemid()); if ($objModule->rightEdit() && class_carrier::getInstance()->getObjSession()->isSuperAdmin()) { $objModule->setIntRecordStatus($objModule->getIntRecordStatus() == 0 ? 1 : 0); $objModule->updateObjectToDb(); $this->adminReload(class_link::getLinkAdminHref($this->getArrModule("modul"))); } }