mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-06-11 09:07:37 -04:00
Fix access control in rss and opml actions (#8912)
Due to missing `return` statement while using `redirect: false`, no `exit()` is done during `Minz_Error::error()` Regression from https://github.com/FreshRSS/FreshRSS/pull/8434
This commit is contained in:
@@ -251,6 +251,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
|
||||
// Check if user has access.
|
||||
if (!FreshRSS_Auth::hasAccess() && !$allow_anonymous && !Minz_Request::tokenIsOk()) {
|
||||
Minz_Error::error(403, redirect: false);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -287,6 +288,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
|
||||
// Check if user has access.
|
||||
if (!FreshRSS_Auth::hasAccess() && !$allow_anonymous && !Minz_Request::tokenIsOk()) {
|
||||
Minz_Error::error(403, redirect: false);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user