#204420 follow up by webernet: fix bad permission check introduced for update module message
parent
4157a521e0
commit
641fdad0b5
|
@ -18,7 +18,7 @@ function system_main_admin_page($arg = NULL) {
|
|||
}
|
||||
|
||||
// Check for status report errors.
|
||||
if (system_status(TRUE) && user_access('access site reports')) {
|
||||
if (system_status(TRUE) && user_access('administer site configuration')) {
|
||||
drupal_set_message(t('One or more problems were detected with your Drupal installation. Check the <a href="@status">status report</a> for more information.', array('@status' => url('admin/reports/status'))), 'error');
|
||||
}
|
||||
$blocks = array();
|
||||
|
|
|
@ -124,7 +124,7 @@ function system_requirements($phase) {
|
|||
// If cron hasn't been run, and the user is viewing the main
|
||||
// administration page, instead of an error, we display a helpful reminder
|
||||
// to configure cron jobs.
|
||||
if ($never_run && $severity != REQUIREMENT_ERROR && $_GET['q'] == 'admin' && user_access('access site reports')) {
|
||||
if ($never_run && $severity != REQUIREMENT_ERROR && $_GET['q'] == 'admin' && user_access('administer site configuration')) {
|
||||
drupal_set_message($t('Cron has not run. Please visit the <a href="@status">status report</a> for more information.', array('@status' => url('admin/reports/status'))));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue