From 41f6437598b6b75e615a437753e4165fdd3de755 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 7 Dec 2021 17:48:28 +0100 Subject: Reload page on 401 since there is an authentification problem Signed-off-by: Carl Schwan --- apps/files/js/filelist.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'apps/files') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 9ae425b1956..b827bfe9d74 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2232,11 +2232,9 @@ this.hideMask(); if (status === 401) { - if (this.getCurrentDirectory() === '/') { - // Give up, if we are not authorized to access user root folder, we are logged out - location.reload(); // this will redirect the user to the login page while saving the current url - } - return false; + // We are not authentificated, so reload the page so that we get + // redirected to the login page while saving the current url. + location.reload(); } // Firewall Blocked request? -- cgit v1.2.3