public function disableHideUserToggleNotiObject() { /** * @var $ilAccess ilAccessHandler * @var $ilErr ilErr */ global $ilAccess, $ilErr; if (!$ilAccess->checkAccess('write', '', $this->ref_id)) { $ilErr->raiseError($this->lng->txt('msg_no_perm_read'), $ilErr->MESSAGE); } if (!isset($_POST['user_id']) || !is_array($_POST['user_id'])) { ilUtil::sendInfo($this->lng->txt('time_limit_no_users_selected')); } else { include_once 'Modules/Forum/classes/class.ilForumNotification.php'; $frm_noti = new ilForumNotification($this->object->getRefId()); foreach ($_POST['user_id'] as $user_id) { $frm_noti->setUserId((int) $user_id); $is_enabled = $frm_noti->isAdminForceNotification(); $frm_noti->setUserToggle(0); if ($is_enabled) { $frm_noti->updateUserToggle(); } else { $frm_noti->setAdminForce(1); $frm_noti->insertAdminForce(); } } ilUtil::sendSuccess($this->lng->txt('saved_successfully')); } $this->showMembersObject(); }