Cleaner limit anonymous mode to default user (#9235)

While waiting for https://github.com/FreshRSS/FreshRSS/issues/1553
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2026-08-25 16:17:36 +02:00
1 parent 95842d81c1
commit 2701b7dff4
9 files changed
+36 -26

No files matched your search

+2 -5
View File
@@ -19,10 +19,7 @@ class FreshRSS_javascript_Controller extends FreshRSS_ActionController {
}
public function actualizeAction(): void {
if (!FreshRSS_Auth::hasAccess() && !(
FreshRSS_Context::systemConf()->allow_anonymous
&& FreshRSS_Context::systemConf()->allow_anonymous_refresh
)) {
if (!FreshRSS_Auth::hasAccess() && !FreshRSS_Auth::allowAnonymousRefresh()) {
Minz_Error::error(403);
return;
}
@@ -58,7 +55,7 @@ class FreshRSS_javascript_Controller extends FreshRSS_ActionController {
}
public function nbUnreadsPerFeedAction(): void {
if (!FreshRSS_Auth::hasAccess() && !FreshRSS_Context::systemConf()->allow_anonymous) {
if (!FreshRSS_Auth::hasAccess() && !FreshRSS_Auth::allowAnonymous()) {
Minz_Error::error(403);
return;
}