/** * Update status of additional course roles */ public function updateRoleStatusObject() { global $rbacreview; $this->checkPermission('write'); include_once './Modules/Course/classes/class.ilCourseParticipants.php'; $users = array(); foreach (ilCourseParticipants::getMemberRoles($this->object->getRefId()) as $role_id) { $users = array_merge($users, $rbacreview->assignedUsers($role_id)); } $passed = is_array($_POST['passed']) ? $_POST['passed'] : array(); $blocked = is_array($_POST['blocked']) ? $_POST['blocked'] : array(); $this->updateParticipantsStatus('members', $users, $passed, array(), $blocked); }