Merge branch 'MDL-84214' of https://github.com/paulholden/moodle
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user