MDL-35429 backup: Only show relevant actions for automated backups
commit5bbea7338da178b8906556764c8162c5a61b0deb
authorJake Dallimore <jake@moodle.com>
Fri, 6 Oct 2017 03:12:22 +0000 (6 11:12 +0800)
committerJake Dallimore <jake@moodle.com>
Tue, 10 Oct 2017 04:30:57 +0000 (10 12:30 +0800)
treef441e13915e73de36c23b418ac35367af6adc6de
parent54945fa728028fa859279b6a0ccab2f095aae24a
MDL-35429 backup: Only show relevant actions for automated backups

- Users without permission to download or restore won't see the
respective links.
- The 'Manage backup files' button for the 'automated' backup filearea
now requires the same permissions as downloading does for this filearea,
those being 'restore:userinfo' and 'backup:downloadfile'.
backup/backupfilesedit.php
backup/util/ui/renderer.php
course/lib.php
course/tests/courselib_test.php