mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
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:
parent
71d985ab7d
commit
a6cacdd266
9 changed files with 417 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue