summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-28 22:23:57 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-28 22:23:57 +0000
commit89844f44356e723e5ec2916d6773b9af65e1ba03 (patch)
treedb77ba7e293a78743cd3b2c17abfced2a5ad53e0
parent2f21341f4ef015bf0c1b3ac838873ab2bebc36db (diff)
downloadbrdo-89844f44356e723e5ec2916d6773b9af65e1ba03.tar.gz
brdo-89844f44356e723e5ec2916d6773b9af65e1ba03.tar.bz2
#204420 by webernet: do not show messages about status problems to those who will not be able to click and go to the reports
-rw-r--r--modules/system/system.admin.inc2
-rw-r--r--modules/system/system.install2
2 files changed, 2 insertions, 2 deletions
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 <a href="@status">status report</a> 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 <a href="@status">status report</a> for more information.', array('@status' => url('admin/reports/status'))));
}