Return HTTP 403 when access is forbidden
This commit is contained in:
committed by
Frédéric Guillot
parent
f22cc29cd5
commit
4d2f2375a1
@@ -27,7 +27,7 @@ class AppController extends Base
|
|||||||
$this->response->html($this->helper->layout->app('app/forbidden', array(
|
$this->response->html($this->helper->layout->app('app/forbidden', array(
|
||||||
'title' => t('Access Forbidden'),
|
'title' => t('Access Forbidden'),
|
||||||
'no_layout' => $withoutLayout,
|
'no_layout' => $withoutLayout,
|
||||||
)));
|
)), 403);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user