From: martinlanghoff <martinlanghoff>
Date: Wed, 19 Sep 2007 07:29:55 +0000 (+0000)
Subject: admin/index: Populate the context path JIT for the new admin user
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=67ab1aecfb6e1babee249f3c41c98532c740f047;p=moodle.git

admin/index: Populate the context path JIT for the new admin user

With this call to build_context_path() the admin rights of the new
user are loaded just before they are first needed.
---

diff --git a/admin/index.php b/admin/index.php
index 5c5ca29505..38708e0419 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -512,6 +512,7 @@
 
 /// Set up the admin user
     if (empty($CFG->rolesactive)) {
+        build_context_path();
         create_admin_user();
     }