mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 13:24:37 -04:00
Fix refreshing feeds with token while anonymous refresh is disabled (#8371)
Closes https://github.com/FreshRSS/FreshRSS/issues/8369 Regression from https://github.com/FreshRSS/FreshRSS/pull/8165
This commit is contained in:
@@ -22,7 +22,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($action !== 'actualize' || !$allow_anonymous_refresh) {
|
||||
if ($action !== 'actualize' || (!$allow_anonymous_refresh && !Minz_Request::tokenIsOk())) {
|
||||
Minz_Error::error(403);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user