MDL-23302 Credit to Aparup, I'm just checking it in. Adds mod/folder:managefiles cap so that others can be allowed to add files to the folder
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ $folder = $DB->get_record('folder', array('id'=>$cm->instance), '*', MUST_EXIST)
|
||||
$course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST);
|
||||
|
||||
require_login($course, false, $cm);
|
||||
require_capability('moodle/course:managefiles', $context);
|
||||
require_capability('mod/folder:managefiles', $context);
|
||||
|
||||
add_to_log($course->id, 'folder', 'edit', 'edit.php?id='.$cm->id, $folder->id, $cm->id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user