mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-14605 removing roles upgrade links, only installation needed in HEAD
This commit is contained in:
parent
5e819fb75b
commit
a5ca5003f2
@ -1022,11 +1022,7 @@ if ( file_exists(dirname(dirname(__FILE__)) . '/config.php')) {
|
||||
|
||||
/// If successful, continue upgrading roles and setting everything properly
|
||||
if ($status) {
|
||||
if (empty($CFG->rolesactive)) {
|
||||
// Upgrade to the roles system.
|
||||
moodle_install_roles();
|
||||
set_config('rolesactive', 1);
|
||||
} else if (!update_capabilities()) {
|
||||
if (!update_capabilities()) {
|
||||
console_write(STDERR,'Had trouble upgrading the core capabilities for the Roles System','',false);
|
||||
}
|
||||
if (set_config("version", $version)) {
|
||||
|
@ -348,13 +348,7 @@
|
||||
$db->debug=false;
|
||||
/// If successful, continue upgrading roles and setting everything properly
|
||||
if ($status) {
|
||||
if (empty($CFG->rolesactive)) {
|
||||
// Groups upgrade is now in core above.
|
||||
|
||||
// Upgrade to the roles system.
|
||||
moodle_install_roles();
|
||||
set_config('rolesactive', 1);
|
||||
} else if (!update_capabilities()) {
|
||||
if (!update_capabilities()) {
|
||||
print_error('cannotupgradecapabilities', 'debug');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user