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,
|
||||
)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -36,7 +36,7 @@ class BoardAjaxController extends BaseController
|
||||
);
|
||||
|
||||
if (! $canMoveTask) {
|
||||
throw new AccessForbiddenException("You don't have the permission to move this task");
|
||||
throw new AccessForbiddenException(e("You don't have the permission to move this task"));
|
||||
}
|
||||
|
||||
$result =$this->taskPositionModel->movePosition(
|
||||
|
||||
Reference in New Issue
Block a user