Skip to content

Commit

Permalink
MDL-84214 mod_bigbluebuttonbn: fix default presentation file serving.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Jan 17, 2025
1 parent ddc7c93 commit 75d85f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mod/bigbluebuttonbn/classes/local/helpers/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,12 @@ public static function get_plugin_filename(?stdClass $course, ?stdClass $cm, con
} 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);
}

Expand Down

0 comments on commit 75d85f4

Please sign in to comment.