Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-35238 Make the auto-deploy feature lockable via config.php

If $CFG->disableupdateautodeploy is set in config.php, no automatic
deploy can happen. This is for sites that are managed by a provider but
their clients have admin access.
  • Loading branch information...
commit f965e1653951b568651cea40e8205d9721c2b47a 1 parent 02fd7f4
@mudrd8mz mudrd8mz authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 admin/settings/server.php
View
6 admin/settings/server.php
@@ -228,8 +228,10 @@
$temp = new admin_settingpage('updatenotifications', new lang_string('updatenotifications', 'core_admin'));
$temp->add(new admin_setting_configcheckbox('updateautocheck', new lang_string('updateautocheck', 'core_admin'),
new lang_string('updateautocheck_desc', 'core_admin'), 1));
- $temp->add(new admin_setting_updateautodeploy('updateautodeploy', new lang_string('updateautodeploy', 'core_admin'),
- new lang_string('updateautodeploy_desc', 'core_admin'), 0));
+ if (empty($CFG->disableupdateautodeploy)) {
+ $temp->add(new admin_setting_updateautodeploy('updateautodeploy', new lang_string('updateautodeploy', 'core_admin'),
+ new lang_string('updateautodeploy_desc', 'core_admin'), 0));
+ }
$temp->add(new admin_setting_configselect('updateminmaturity', new lang_string('updateminmaturity', 'core_admin'),
new lang_string('updateminmaturity_desc', 'core_admin'), MATURITY_STABLE,
array(

0 comments on commit f965e16

Please sign in to comment.
Something went wrong with that request. Please try again.