Skip to content
Browse files

course/edit: mark the course contextpath as dirty to force a reload

Combined with the path creation in create_context() we can now create
a course, enter and edit it immediately. Amazing.

Like - 21st century technology.
  • Loading branch information...
martinlanghoff committed Sep 19, 2007
1 parent e40413b commit c633af7a5a09998a597905cec263056858a63d1c
Showing with 4 additions and 0 deletions.
  1. +4 −0 course/edit.php
@@ -100,6 +100,10 @@
role_assign($CFG->creatornewroleid, $USER->id, 0, $context->id);
// ensure we can use the course right after creating it
// this means trigger a reload of accessinfo...
if ($data->metacourse and has_capability('moodle/course:managemetacourse', $context)) {
// Redirect users with metacourse capability to student import

0 comments on commit c633af7

Please sign in to comment.
You can’t perform that action at this time.