Define only what is allowed for column restrictions
This commit is contained in:
@@ -16,18 +16,19 @@ class AppController extends Base
|
||||
* Forbidden page
|
||||
*
|
||||
* @access public
|
||||
* @param bool $withoutLayout
|
||||
* @param bool $withoutLayout
|
||||
* @param string $message
|
||||
*/
|
||||
public function accessForbidden($withoutLayout = false)
|
||||
public function accessForbidden($withoutLayout = false, $message = '')
|
||||
{
|
||||
if ($this->request->isAjax()) {
|
||||
$this->response->json(array('message' => 'Access Forbidden'), 403);
|
||||
$this->response->json(array('message' => $message ?: t('Access Forbidden')), 403);
|
||||
} else {
|
||||
$this->response->html($this->helper->layout->app('app/forbidden', array(
|
||||
'title' => t('Access Forbidden'),
|
||||
'no_layout' => $withoutLayout,
|
||||
)));
|
||||
}
|
||||
|
||||
$this->response->html($this->helper->layout->app('app/forbidden', array(
|
||||
'title' => t('Access Forbidden'),
|
||||
'no_layout' => $withoutLayout,
|
||||
)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user