diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-11-18 23:55:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-11-18 23:55:38 +0000 |
commit | 1351991d370c9cad1cca6abf4b829cb21e21b255 (patch) | |
tree | 61e36ab1f70fe5c4ed5b32ee015038146af1110d /etc | |
parent | be23be5acb466b0b61814d67b52292d8aa5f0f75 (diff) | |
download | pfsense-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.inc | 2 |
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; } } |