Skip to content

Commit

Permalink
MDL-23302 using new managefiles cap for file_browser too
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 22, 2010
1 parent 2b762f4 commit 7c78c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/folder/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function folder_get_file_info($browser, $areas, $course, $cm, $context, $fileare
$urlbase = $CFG->wwwroot.'/pluginfile.php';

// students may read files here
$canwrite = has_capability('moodle/course:managefiles', $context);
$canwrite = has_capability('mod/folder:managefiles', $context);
return new folder_content_file_info($browser, $context, $storedfile, $urlbase, $areas[$filearea], true, true, $canwrite, false);
}

Expand Down

0 comments on commit 7c78c52

Please sign in to comment.