From a0ea899175f8a12d07969f1b5f36c68635c1851d Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 2 Nov 2018 09:12:05 +0800 Subject: [PATCH 1/1] TEST ONLY --- lib/db/install.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/db/install.php b/lib/db/install.php index ddf0aa26b9d..f6a9919ed64 100644 --- a/lib/db/install.php +++ b/lib/db/install.php @@ -259,6 +259,8 @@ function xmldb_main_install() { $guestrole = create_role('', 'guest', '', 'guest'); $userrole = create_role('', 'user', '', 'user'); $frontpagerole = create_role('', 'frontpage', '', 'frontpage'); + create_role('foo', 'foo', 'foo'); + create_role('bar', 'bar', 'bar'); // Now is the correct moment to install capabilities - after creation of legacy roles, but before assigning of roles update_capabilities('moodle'); -- 2.17.0