fix: [API] rate limit should only run on the API

pull/5296/head
iglocska 2019-10-10 11:55:33 +02:00
parent fe84f2f796
commit be509b3833
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 1 deletions

View File

@ -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()