mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Merge branch 'MDL-74784-master' of https://github.com/sarjona/moodle
This commit is contained in:
commit
399a922f0d
@ -208,7 +208,7 @@ class issued_badge implements renderable {
|
||||
$data->hasrelatedbadges = true;
|
||||
$data->relatedbadges = [];
|
||||
foreach ($relatedbadges as $related) {
|
||||
if (isloggedin() && !is_guest($context)) {
|
||||
if (isloggedin() && ($context instanceof context_course && !is_guest($context))) {
|
||||
$related->url = (new moodle_url('/badges/overview.php', ['id' => $related->id]))->out(false);
|
||||
}
|
||||
$data->relatedbadges[] = (array)$related;
|
||||
|
Loading…
x
Reference in New Issue
Block a user