mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
e2652f1a31
- Removed 'Private files' from 'Server files' repository; - Show only non-empty directories (taking into account filetype filter); - If there is only one non-empty filearea within a module, do not show it and skip the extra subdirectory level; - If the user is not admin (does not have 'moodle/course:update' capability in system context), do not show course categories, just list available courses; - Also when retrieving the course files capability to managefiles is checked before retrieving the modules list for performance tuning on sites with a lot of courses