aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Inverle <inverle@proton.me> 2025-09-21 12:40:40 +0200
committerGravatar GitHub <noreply@github.com> 2025-09-21 12:40:40 +0200
commitf2c6942a60189913e4a2ebe955d765050d53bc14 (patch)
tree6506d5c46d28f8d27a12704b4b38695a0d2baab4 /app
parentcaecc5decf427a29ff2b947ded420ff0ecc21731 (diff)
Move update one step before (#7989)
Closes https://github.com/FreshRSS/FreshRSS/issues/7897
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/updateController.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/Controllers/updateController.php b/app/Controllers/updateController.php
index ba343c81e..bec639b39 100644
--- a/app/Controllers/updateController.php
+++ b/app/Controllers/updateController.php
@@ -128,6 +128,11 @@ class FreshRSS_update_Controller extends FreshRSS_ActionController {
Minz_Error::error(403);
}
+ if (!(Minz_Request::actionName() === 'apply' && Minz_Request::paramBoolean('post_conf')) &&
+ FreshRSS_Auth::requestReauth()) {
+ return;
+ }
+
include_once LIB_PATH . '/lib_install.php';
invalidateHttpCache();
@@ -269,10 +274,6 @@ class FreshRSS_update_Controller extends FreshRSS_ActionController {
Minz_Request::forward(['c' => 'update'], true);
}
- if (FreshRSS_Auth::requestReauth()) {
- return;
- }
-
if (Minz_Request::paramBoolean('post_conf')) {
if (self::isGit()) {
$res = !self::hasGitUpdate();