Hello!
I want to filter userlist available to manual enrol - only users assing to specialised mentor must be displayed. I found that code in /enrol/manual/manage.php
<td id="potentialcell">
<p><label for="addselect"><?php print_string('enrolcandidates', 'enrol'); ?></label></p>
<?php $potentialuserselector->display() ?>
</td>
how can I pass search criteria to display only users, assigned to current mentor?