summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/index.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-12-28 13:44:53 +0545
committerGitHub <noreply@github.com>2016-12-28 13:44:53 +0545
commitc87eeb08acc6d5d0fd642e50990b93b7137657ee (patch)
tree8c1d8f9b0d349597953208be0739641a051a32f2 /src/usr/local/www/index.php
parent151b4e35eead8d1b1a9ccd1d1c3b3c4fb0e6620a (diff)
downloadpfsense-c87eeb08acc6d5d0fd642e50990b93b7137657ee.zip
pfsense-c87eeb08acc6d5d0fd642e50990b93b7137657ee.tar.gz
Fix #7043 Do not display crash reporter link when no crash_reporter access
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r--src/usr/local/www/index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index 2995ad8..ddcc5f2 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -74,7 +74,12 @@ if ($g['disablecrashreporter'] != true) {
}
if ($x > 0) {
- $savemsg = sprintf(gettext("%s has detected a crash report or programming bug. Click <a href='crash_reporter.php'>here</a> for more information."), $g['product_name']);
+ $savemsg = sprintf(gettext("%s has detected a crash report or programming bug."), $g['product_name']) . " ";
+ if (isAllowedPage("/crash_reporter.php")) {
+ $savemsg .= sprintf(gettext("Click <a href='crash_reporter.php'>here</a> for more information."));
+ } else {
+ $savemsg .= sprintf(gettext("Contact the system administrator for more information."));
+ }
$class = "warning";
}
}
OpenPOWER on IntegriCloud