This commit is contained in:
Sara Arjona
2025-01-29 08:39:21 +01:00
@@ -251,9 +251,12 @@ class files {
} else {
require_login(null, true, $cm, true, true);
}
if (!has_capability('mod/bigbluebuttonbn:join', $context)) {
// If the file belongs to a course module, ensure user can join the activity.
if ($cm !== null && !has_capability('mod/bigbluebuttonbn:join', $context)) {
return null;
}
return implode('/', $args);
}