Переглянути джерело

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
Inverle 3 місяців тому
батько
коміт
19bdfc0267
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/Controllers/feedController.php

+ 1 - 1
app/Controllers/feedController.php

@@ -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);
 			}
 		}