aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-28 13:54:52 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-28 13:54:52 +0100
commit9ac1496d63da32524a33696187342ce061e9ef28 (patch)
treefc45025f1055c9a4fa2eee26240617badecef969 /app/views
parent45b2decce03e218fe7ad66479491123ce398ab1f (diff)
Bouge anon_access dans config.php
L'accès anonyme n'est pas au niveau utilisateur mais au niveau global. Bouge FreshRSS_Configuration::conf->anonAccess() qui était stocké dans *_user.php vers Minz_Configuration::allowAnonymous() stocké dans config.php Contribue à https://github.com/marienfressinaud/FreshRSS/issues/126 + autres optimisations Contribue à https://github.com/marienfressinaud/FreshRSS/issues/260
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/users.phtml2
-rw-r--r--app/views/index/index.phtml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/configure/users.phtml b/app/views/configure/users.phtml
index 40cce590e..c57671ef3 100644
--- a/app/views/configure/users.phtml
+++ b/app/views/configure/users.phtml
@@ -50,7 +50,7 @@
<div class="form-group">
<div class="group-controls">
<label class="checkbox" for="anon_access">
- <input type="checkbox" name="anon_access" id="anon_access" value="yes"<?php echo $this->conf->anonAccess() == 'yes' ? ' checked="checked"' : ''; ?> />
+ <input type="checkbox" name="anon_access" id="anon_access" value="1"<?php echo Minz_Configuration::allowAnonymous() ? ' checked="checked"' : ''; ?> />
<?php echo Minz_Translate::t('allow_anonymous'); ?>
</label>
</div>
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml
index cf98060c4..2d134ba4e 100644
--- a/app/views/index/index.phtml
+++ b/app/views/index/index.phtml
@@ -7,7 +7,7 @@ $token_is_ok = ($token != '' && $token == $token_param);
if(!login_is_conf ($this->conf) ||
is_logged() ||
- $this->conf->anonAccess() == 'yes' ||
+ Minz_Configuration::allowAnonymous() ||
($output == 'rss' && $token_is_ok)) {
if($output == 'rss') {
$this->renderHelper ('view/rss_view');