MDL-51369 backup: Respect capabilities when restoring course info
commit24b0c3c86ae96e46b87d6e9d6bcf4a6014dae8f0
authorFrederic Massart <fred@moodle.com>
Thu, 21 Apr 2016 08:37:39 +0000 (21 16:37 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 6 May 2016 01:50:50 +0000 (6 09:50 +0800)
treef4a21e3f7d9ba9ea526be0f537524c207d4d3ebc
parent4c27175d35348e466e408bf28f8088f5fa1b77d3
MDL-51369 backup: Respect capabilities when restoring course info

In short, when a user is creating a new course they can set
the ID number, shortname, fullname and summary. However, when
they merge a backup into a course they need the permissions to do so.
backup/moodle2/restore_stepslib.php