Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c0484d
)
MDL-14627 fixed file_browser access control
author
Petr Skoda
<skodak@moodle.org>
Thu, 14 Oct 2010 19:33:59 +0000
(19:33 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Thu, 14 Oct 2010 19:33:59 +0000
(19:33 +0000)
mod/folder/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/folder/lib.php
b/mod/folder/lib.php
index
f8cd876
..
3cffd25
100644
(file)
--- a/
mod/folder/lib.php
+++ b/
mod/folder/lib.php
@@
-244,6
+244,9
@@
function folder_get_file_info($browser, $areas, $course, $cm, $context, $fileare
if ($filearea === 'content') {
+ if (!has_capability('mod/folder:view', $context)) {
+ return NULL;
+ }
$fs = get_file_storage();
$filepath = is_null($filepath) ? '/' : $filepath;