From 89844f44356e723e5ec2916d6773b9af65e1ba03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 28 Dec 2007 22:23:57 +0000 Subject: #204420 by webernet: do not show messages about status problems to those who will not be able to click and go to the reports --- modules/system/system.admin.inc | 2 +- modules/system/system.install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 52d5c85cc..96ac8c4a0 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -18,7 +18,7 @@ function system_main_admin_page($arg = NULL) { } // Check for status report errors. - if (system_status(TRUE)) { + if (system_status(TRUE) && user_access('access site reports')) { drupal_set_message(t('One or more problems were detected with your Drupal installation. Check the status report for more information.', array('@status' => url('admin/reports/status'))), 'error'); } $blocks = array(); diff --git a/modules/system/system.install b/modules/system/system.install index 980524561..8020c11a3 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -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') { + if ($never_run && $severity != REQUIREMENT_ERROR && $_GET['q'] == 'admin' && user_access('access site reports')) { drupal_set_message($t('Cron has not run. Please visit the status report for more information.', array('@status' => url('admin/reports/status')))); } -- cgit v1.2.3