summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-18 23:55:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-18 23:55:38 +0000
commit1351991d370c9cad1cca6abf4b829cb21e21b255 (patch)
tree61e36ab1f70fe5c4ed5b32ee015038146af1110d /etc
parentbe23be5acb466b0b61814d67b52292d8aa5f0f75 (diff)
downloadpfsense-1351991d370c9cad1cca6abf4b829cb21e21b255.zip
pfsense-1351991d370c9cad1cca6abf4b829cb21e21b255.tar.gz
Instead of throwing a very vague 401 error actually tell the user which page they do not have access to. This will also help admins troubleshoot group manager page privs.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/authgui.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index 36a7870..3f15e13 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -124,7 +124,7 @@ if (!(isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER']))) {
header("HTTP/1.0 401 Unauthorized");
header("Status: 401 Unauthorized");
- echo display_error_form("401", "401 Unauthorized. Authorization required.");
+ echo display_error_form("401", "Unauthorized. You do not have access to the page {$pagereq}");
exit;
}
}
OpenPOWER on IntegriCloud