mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Bug #6120 - Course creation - loginproblem
This commit is contained in:
parent
63d337cf47
commit
34db6d30a0
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@
|
|||
$newteacher->course = $newcourseid;
|
||||
$newteacher->authority = 1; // First teacher is the main teacher
|
||||
$newteacher->editall = 1; // Course creator can edit their own course
|
||||
$newteacher->enrol = 'manual';// enrol the teacher too - bug #6120
|
||||
|
||||
if (!$newteacher->id = insert_record("user_teachers", $newteacher)) {
|
||||
error("Could not add you to this new course!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue