-
Bug
-
Resolution: Fixed
-
Major
-
2.2.2, 3.4
-
MOODLE_22_STABLE, MOODLE_34_STABLE
-
MOODLE_34_STABLE
-
MDL-35429-master -
-
-
3.4 Sprint 5
The main problems originally reported on this issue:
- Incorrect capability ('moode/site:config') used to control downloading of automated course backups. Teachers are unable to download these files.
- Teachers are unable to restore automated backup files. The capability 'moodle/restore:viewautomatedfilearea' exists, but was badly labelled and not set by default for teachers or managers.
The restore page and its associated capabilities have a number of nuances described in detail in this comment, however, in summary, what this issue aims to achieve is resticted to the 'automated' backup file area, and is as follows:
- Do not change anything in stable branches. Users can already download backup files via the 'Manage backup files' page here and can restore if granted the 'moodle/restore:viewautomatedfilearea' capability.
- Allow downloading of automated backups by checking 2 capabilities ('moodle/backup:downloadfile' and 'moodle/restore:userinfo'), instead of the erroneous 'site:config' check. Please read the linked comment for details on why 'downloadfile' is not sufficient.
- Allow management of automated backup files (the 'Manage backup files' button and page) using the same two capabilities menitoned above.
- Ensure teachers cannot download automated backup files by default. They will need to be given the restore:userinfo capability to do this.
- Allow teachers and managers to restore automated backups by default on new installs.
- Remove the links to 'download' and 'restore' automated backup files when the user does not have the respective capability.