mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
One missing global was preventig users becoming teacher of
the course being restored. MDL-6084
This commit is contained in:
parent
14e0fcb120
commit
14a60a077b
1 changed files with 1 additions and 1 deletions
|
@ -4843,7 +4843,7 @@
|
|||
}
|
||||
|
||||
function restore_execute(&$restore,$info,$course_header,&$errorstr) {
|
||||
global $CFG;
|
||||
global $CFG, $USER;
|
||||
$status = true;
|
||||
//Checks for the required files/functions to restore every module
|
||||
//and include them
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue