{
{
return $this->showModerators();
}
$entries = $this->oForumModerators->getCurrentModerators();
if(count(
$_POST[
'usr_id']) == count($entries))
{
return $this->showModerators();
}
include_once "Modules/Forum/classes/class.ilForumNotification.php";
if($isCrsGrp)
{
global $tree;
$parent_ref_id = $tree->getParentId($this->ref_id);
include_once "Services/Membership/classes/class.ilParticipants.php";
}
include_once "Modules/Forum/classes/class.ilForumProperties.php";
$frm_noti_type = $objFrmProps->getNotificationType();
foreach(
$_POST[
'usr_id'] as $usr_id)
{
$this->oForumModerators->detachModeratorRole((int)$usr_id);
if($isCrsGrp && $frm_noti_type != 'default')
{
{
$tmp_frm_noti->setUserId((int)$usr_id);
$tmp_frm_noti->deleteAdminForce();
}
}
}
$this->ctrl->redirect($this, 'showModerators');
}