diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-28 22:23:57 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-28 22:23:57 +0000 |
commit | 89844f44356e723e5ec2916d6773b9af65e1ba03 (patch) | |
tree | db77ba7e293a78743cd3b2c17abfced2a5ad53e0 /modules/system/system.install | |
parent | 2f21341f4ef015bf0c1b3ac838873ab2bebc36db (diff) | |
download | brdo-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.install')
-rw-r--r-- | modules/system/system.install | 2 |
1 files changed, 1 insertions, 1 deletions
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')))); } |