-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.0.6, 2.1.3, 2.2
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
The method used to populate the 'Recent files' repository does not check user permission to view the files.
But when user actually tries to insert an image the function get_file_size fails and user receives an error 'File size cannot be determined'. I would suggest that get_file_size is also called before populating the recent files list.
See also discussion in MDL-30214