summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-12-07 17:48:28 +0100
committerCarl Schwan <carl@carlschwan.eu>2021-12-07 17:48:28 +0100
commit170ca81760007a31bd7bb65a5a0b17a67aab84e6 (patch)
tree37e43e75b6b4e510c46b9d5eb9957eb70602df1d /apps
parent50d256f9597d9e9126344a5428dc23f3e82559a6 (diff)
downloadnextcloud-server-170ca81760007a31bd7bb65a5a0b17a67aab84e6.tar.gz
nextcloud-server-170ca81760007a31bd7bb65a5a0b17a67aab84e6.zip
Reload page on 401 since there is an authentification problem
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index fbd07729c74..6fe9895c60e 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?