fix: [appcontroller] Validate form for all actions unless index
parent
0c54d60a13
commit
a5e1e39671
|
@ -108,11 +108,10 @@ class AppController extends Controller
|
|||
throw new MethodNotAllowedException(__('Invalid user credentials.'));
|
||||
}
|
||||
|
||||
// if ($this->request->getParam('action') === 'index') {
|
||||
// $this->Security->setConfig('validatePost', false);
|
||||
// }
|
||||
if ($this->request->getParam('action') === 'index') {
|
||||
$this->Security->setConfig('validatePost', false);
|
||||
}
|
||||
$this->Security->setConfig('unlockedActions', ['index']);
|
||||
$this->Security->setConfig('validatePost', false);
|
||||
|
||||
$this->ACL->checkAccess();
|
||||
$this->set('menu', $this->ACL->getMenu());
|
||||
|
|
Loading…
Reference in New Issue