aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2021-10-16 12:19:20 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-16 12:19:20 +0200
commite9b62d1d76356e4f32d61e4f9e45a91946435be7 (patch)
tree85e8bbdb4675efd46c1586f64ee55ac48dd7e972
parent02641de32ecc6e0e4fd9de030399728080b6ed41 (diff)
fix #3661: not logged in user: button to mark all as read leads to HTTP403 error (#3871)
* fix * optimized * Fix href Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
-rwxr-xr-xapp/views/helpers/pagination.phtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/helpers/pagination.phtml b/app/views/helpers/pagination.phtml
index 0022ba299..f4d48d3de 100755
--- a/app/views/helpers/pagination.phtml
+++ b/app/views/helpers/pagination.phtml
@@ -25,7 +25,7 @@
<a id="load_more" href="<?= Minz_Url::display($url_next) ?>">
<?= _t('gen.pagination.load_more') ?>
</a>
- <?php } elseif ($url_mark_read) { ?>
+ <?php } elseif ($url_mark_read && FreshRSS_Auth::hasAccess()) { ?>
<button id="bigMarkAsRead"
class="as-link <?= FreshRSS_Context::$user_conf->reading_confirm ? 'confirm" disabled="disabled' : '' ?>"
form="mark-read-pagination"
@@ -36,9 +36,9 @@
<?= _t('gen.pagination.mark_all_read') ?>
</button>
<?php } else { ?>
- <a id="bigMarkAsRead" href=".">
+ <div id="bigMarkAsRead">
<?= _t('gen.pagination.nothing_to_load') ?><br />
- </a>
+ </div>
<?php } ?>
</li>
</ul>