MDL-63262 badges: Show all public badges

Use the "expand" parameter so the backpack returns nested public
information about each badge in a public collection. This saves 2 requests per badge and
fixes the problem where we don't have permission to see some public badge details.
This commit is contained in:
Damyon Wiese
2019-05-06 11:25:26 +08:00
parent 7444ba743f
commit 58c7d2ce2b
3 changed files with 25 additions and 58 deletions
+1
View File
@@ -354,6 +354,7 @@ class backpack_api_mapping {
$options = $this->get_curl_options();
$post = $this->get_post_params($email, $password, $postparam);
if ($this->method == 'get') {
$response = $curl->get($url, $post, $options);
} else if ($this->method == 'post') {