diff options
| author | 2017-03-04 11:21:57 +0100 | |
|---|---|---|
| committer | 2017-03-04 11:21:57 +0100 | |
| commit | 9e698108febebba511638d9cad5a228cb8936e3a (patch) | |
| tree | b686dbe5d791bb5fbdfeed7836c030049155a440 /app/views/helpers/javascript_vars.phtml | |
| parent | 99af5afba14ca9d19c4790a93090d1ac792e6aaf (diff) | |
Do not mark as read in anonymous mode
And avoid HTTP 403 https://github.com/FreshRSS/FreshRSS/issues/1431
Diffstat (limited to 'app/views/helpers/javascript_vars.phtml')
| -rw-r--r-- | app/views/helpers/javascript_vars.phtml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml index 745baa195..059224305 100644 --- a/app/views/helpers/javascript_vars.phtml +++ b/app/views/helpers/javascript_vars.phtml @@ -3,6 +3,7 @@ $mark = FreshRSS_Context::$user_conf->mark_when; $s = FreshRSS_Context::$user_conf->shortcuts; echo htmlspecialchars(json_encode(array( 'context' => array( + 'anonymous' => !FreshRSS_Auth::hasAccess(), 'auto_remove_article' => !!FreshRSS_Context::isAutoRemoveAvailable(), 'hide_posts' => !(FreshRSS_Context::$user_conf->display_posts || Minz_Request::actionName() === 'reader'), 'display_order' => Minz_Request::param('order', FreshRSS_Context::$user_conf->sort_order), |
