]> source.dussan.org Git - nextcloud-server.git/commitdiff
Reload page on 401 since there is an authentification problem 30151/head
authorCarl Schwan <carl@carlschwan.eu>
Tue, 7 Dec 2021 16:48:28 +0000 (17:48 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 8 Dec 2021 11:39:57 +0000 (11:39 +0000)
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
apps/files/js/filelist.js

index fbd07729c74e747e9faf7350131f2540d5822daf..6fe9895c60e29842e912f28d88c0cd496eef524d 100644 (file)
                        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?