mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
fixing missing bracket
This commit is contained in:
parent
89d57596bd
commit
c5a3467aa0
2
file.php
2
file.php
@ -106,7 +106,7 @@
|
||||
// warning: it may break backwards compatibility
|
||||
if ((!empty($CFG->preventaccesstohiddenfiles))
|
||||
and (count($args) >= 2)
|
||||
and (!has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_COURSE, $course->id))) {
|
||||
and (!has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_COURSE, $course->id)))) {
|
||||
|
||||
$reference = ltrim($relativepath, "/{$args[0]}/");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user