MDL-72265 backup: fix checking of override capabilites on restore

Thanks to Peter Dias <[email protected]> for his help with the unit test.
This commit is contained in:
Tim Hunt
2021-08-05 14:28:37 +01:00
parent 0a21811ed0
commit 1c25e9ec53
6 changed files with 216 additions and 3 deletions
@@ -358,6 +358,15 @@ class backup_controller extends base_controller {
return $this->plan;
}
/**
* For debug only. Get a simple test display of all the settings.
*
* @return string
*/
public function debug_display_all_settings_values(): string {
return $this->get_plan()->debug_display_all_settings_values();
}
/**
* Sets the user roles that should be kept in the destination course
* for a course copy operation.