Commit 0d42d645 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Restricting the institution get members (Bug 1393530)

to only those in the institution indicated

Change-Id: Ic4292676017af5f6aecdb491880901e84027dca6
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent b7650d06
......@@ -2375,6 +2375,7 @@ class mahara_institution_external extends external_api {
throw new WebserviceInvalidParameterException('get_members: ' . get_string('accessdeniedforinst', 'auth.webservice') . $params['institution']);
}
$institution = new Institution($params['institution']);
$institution->member = true; // Only fetch the users belonging to the institution indicated in $params['institution']
$data = institutional_admin_user_search('', $institution, 0);
$users = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment