Commit f36fbc1c authored by Robert Lyon's avatar Robert Lyon

Unlock root group homepage template to allow for editing (Bug #1369315)

Due to the line 1868 in lib/db/upgrade.php
commit 1e4f1c55

All group homepages were locked including the one owned by root user.
That was fine before as one couldn't edit the root user's template
but now you can so we need to let this view be unlocked.

Only an issue if upgrading from version before 1.5.0

Change-Id: I02c28c0300ad9d640171c5870fa8630b0793e473
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 1f6b6006
......@@ -3744,5 +3744,10 @@ function xmldb_core_upgrade($oldversion=0) {
}
}
// Unlock root user grouphomepage template in case it is locked
if ($oldversion < 2014101501) {
set_field('view', 'locked', 0, 'type', 'grouphomepage', 'owner', 0);
}
return $status;
}
......@@ -16,7 +16,7 @@ $config = new stdClass();
// See https://wiki.mahara.org/index.php/Developer_Area/Version_Numbering_Policy
// For upgrades on stable branches, increment the version by one. On master, use the date.
$config->version = 2014101500;
$config->version = 2014101501;
$config->release = '1.11.0dev';
$config->minupgradefrom = 2009022600;
$config->minupgraderelease = '1.1.0 (release tag 1.1.0_RELEASE)';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment