summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rwxr-xr-xapp/controllers/indexController.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php
index c8a0ebe20..17feaf94b 100755
--- a/app/controllers/indexController.php
+++ b/app/controllers/indexController.php
@@ -8,6 +8,17 @@ class indexController extends ActionController {
public function indexAction () {
$output = Request::param ('output');
+ $token = $this->view->conf->token();
+ $token_param = Request::param ('token', '');
+ $token_is_ok = ($token != '' && $token == $token_param);
+
+ if(login_is_conf ($this->view->conf) &&
+ !is_logged() &&
+ $this->view->conf->anonAccess() == 'no' &&
+ !($output == 'rss' && $token_is_ok)) {
+ return;
+ }
+
if ($output == 'rss') {
$this->view->_useLayout (false);
} else {