summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
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 /modules/system/system.admin.inc
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
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc2
1 files changed, 1 insertions, 1 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();