MDL-84214 mod_bigbluebuttonbn: fix default presentation file serving.

This commit is contained in:
Paul Holden
2025-01-17 12:29:07 +00:00
parent ddc7c93a3c
commit 75d85f4ef4
@@ -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);
}