MDL-61028 core_search: Allow filtering search by user (front-end)

Creates a new 'Users' field in the search filters form. This field
requires new JavaScript and, to implement this, a new AJAX-callable
web service to search for users by name, with detailed restrictions
based on the current user's access to view profiles.
This commit is contained in:
sam marshall 2018-04-20 16:44:32 +01:00
parent 71d985ab7d
commit a6cacdd266
9 changed files with 417 additions and 1 deletions

View file

@ -1178,6 +1178,13 @@ $functions = array(
'type' => 'write',
'capabilities' => 'moodle/role:assign'
),
'core_search_get_relevant_users' => array(
'classname' => '\core_search\external',
'methodname' => 'get_relevant_users',
'description' => 'Gets relevant users for a search request.',
'type' => 'read',
'ajax' => true
),
'core_tag_get_tagindex' => array(
'classname' => 'core_tag_external',
'methodname' => 'get_tagindex',