protected function addOtherRolesToolbar() { $arrLocalRoles = $this->rbacreview->getLocalRoles($this->parent_object->getRefId()); $types = array(); foreach ($arrLocalRoles as $role_id) { $ilObjRole = new ilObjRole($role_id); if (!preg_match("/il_orgu_/", $ilObjRole->getUntranslatedTitle())) { $types[$role_id] = $ilObjRole->getPresentationTitle(); } } $this->ctrl->setParameterByClass('ilRepositorySearchGUI', 'addusertype', 'other'); ilRepositorySearchGUI::fillAutoCompleteToolbar($this, $this->toolbar, array('auto_complete_name' => $this->lng->txt('user'), 'user_type' => $types, 'submit_name' => $this->lng->txt('add'))); }