Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Update/UpdateKernel.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
180 | 180 |
181 /** @var \Drupal\system\Access\DbUpdateAccessCheck $db_update_access */ | 181 /** @var \Drupal\system\Access\DbUpdateAccessCheck $db_update_access */ |
182 $db_update_access = $this->getContainer()->get('access_check.db_update'); | 182 $db_update_access = $this->getContainer()->get('access_check.db_update'); |
183 | 183 |
184 if (!Settings::get('update_free_access', FALSE) && !$db_update_access->access($account)->isAllowed()) { | 184 if (!Settings::get('update_free_access', FALSE) && !$db_update_access->access($account)->isAllowed()) { |
185 throw new AccessDeniedHttpException('In order to run update.php you need to either be logged in as admin or have set $settings[\'update_free_access\'] in your settings.php.'); | 185 throw new AccessDeniedHttpException('In order to run update.php you need to either have "Administer software updates" permission or have set $settings[\'update_free_access\'] in your settings.php.'); |
186 } | 186 } |
187 } | 187 } |
188 | 188 |
189 } | 189 } |