add_header is for html headers, not http...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1084 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
5fb279c545
commit
8b1ce21465
@ -19,6 +19,8 @@ class AdminPage implements Extension {
|
|||||||
|
|
||||||
if(($event instanceof PageRequestEvent) && $event->page_matches("admin")) {
|
if(($event instanceof PageRequestEvent) && $event->page_matches("admin")) {
|
||||||
if(!$event->user->is_admin()) {
|
if(!$event->user->is_admin()) {
|
||||||
|
//$event->page->add_header("HTTP/1.0 403 Access Denied");
|
||||||
|
header("HTTP/1.0 403 Access Denied");
|
||||||
$this->theme->display_error($event->page, "Permission Denied", "This page is for admins only");
|
$this->theme->display_error($event->page, "Permission Denied", "This page is for admins only");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user