diff --git a/app/Controller/AppController.php b/app/Controller/AppController.php index ef53b849a..57f8aa027 100755 --- a/app/Controller/AppController.php +++ b/app/Controller/AppController.php @@ -304,7 +304,7 @@ class AppController extends Controller { } if ($this->Session->check(AuthComponent::$sessionKey)) { - if (!empty(Configure::read('MISP.terms_file')) && !$this->Auth->user('termsaccepted') && (!in_array($this->request->here, array($base_dir.'/users/terms', $base_dir.'/users/logout', $base_dir.'/users/login')))) { + if (!empty(Configure::read('MISP.terms_file')) && !$this->Auth->user('termsaccepted') && (!in_array($this->request->here, array($base_dir.'/users/terms', $base_dir.'/users/logout', $base_dir.'/users/login', $base_dir.'/users/downloadTerms')))) { if ($this->_isRest()) throw new MethodNotAllowedException('You have not accepted the terms of use yet, please log in via the web interface and accept them.'); $this->redirect(array('controller' => 'users', 'action' => 'terms', 'admin' => false)); } else if ($this->Auth->user('change_pw') && (!in_array($this->request->here, array($base_dir.'/users/terms', $base_dir.'/users/change_pw', $base_dir.'/users/logout', $base_dir.'/users/login')))) {