From 0ad8c7850d59ed64386d139b2967d7ec6604ec59 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 12 Sep 2006 08:17:33 +0000 Subject: [PATCH] Reload default guest --- lib/db/mysql.php | 2 +- lib/db/postgres7.php | 2 +- version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/db/mysql.php b/lib/db/mysql.php index fdc23462c0..f6aedefb35 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -2201,7 +2201,7 @@ function main_upgrade($oldversion=0) { )TYPE=MYISAM COMMENT ='time user last accessed any page in a course';", true); } - if ($oldversion < 2006091211) { // Reload the guest roles completely with new defaults + if ($oldversion < 2006091212) { // Reload the guest roles completely with new defaults if ($guestroles = get_roles_with_capability('moodle/legacy:guest', CAP_ALLOW)) { delete_records('capabilities'); $sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID); diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index 0f27ecaeaf..1129c3db24 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -1801,7 +1801,7 @@ function main_upgrade($oldversion=0) { } - if ($oldversion < 2006091211) { // Reload the guest roles completely with new defaults + if ($oldversion < 2006091212) { // Reload the guest roles completely with new defaults if ($guestroles = get_roles_with_capability('moodle/legacy:guest', CAP_ALLOW)) { delete_records('capabilities'); $sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID); diff --git a/version.php b/version.php index 0b8ebb3416..8ca7f64d98 100644 --- a/version.php +++ b/version.php @@ -6,7 +6,7 @@ // This is compared against the values stored in the database to determine // whether upgrades should be performed (see lib/db/*.php) - $version = 2006091211; // YYYYMMDD = date + $version = 2006091212; // YYYYMMDD = date // XY = increments within a single day $release = '1.7 dev'; // Human-friendly version name -- 2.39.5