MDL-49329 admin: Clean up disabling of plugins code management features
The admin setting updateautodeploy no longer exists. The two existing config.php flags $CFG->disableupdateautodeploy and $CFG->disableonclickaddoninstall merged into a single one.
This commit is contained in:
@@ -36,7 +36,7 @@ if (!has_capability('moodle/site:config', context_system::instance())) {
|
||||
die();
|
||||
}
|
||||
|
||||
if (!empty($CFG->disableonclickaddoninstall)) {
|
||||
if (!empty($CFG->disableupdateautodeploy)) {
|
||||
header('HTTP/1.1 403 Forbidden');
|
||||
die();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user