mirror of https://github.com/MISP/MISP
fix: [API] rate limit should only run on the API
parent
fe84f2f796
commit
be509b3833
|
@ -471,7 +471,9 @@ class AppController extends Controller
|
|||
}
|
||||
$this->set('notifications', $notifications);
|
||||
$this->ACL->checkAccess($this->Auth->user(), Inflector::variable($this->request->params['controller']), $this->action);
|
||||
$this->__rateLimitCheck();
|
||||
if ($this->_isRest()) {
|
||||
$this->__rateLimitCheck();
|
||||
}
|
||||
}
|
||||
|
||||
private function __rateLimitCheck()
|
||||
|
|
Loading…
Reference in New Issue