Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-12-07 19:48:28 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-12-08 14:45:07 +0300
commit41f6437598b6b75e615a437753e4165fdd3de755 (patch)
tree17531f97e31cc776b3c295cca1bfc3a68dce6b75 /apps/files
parent2d5192b807170d5f4b3872427d817dca1217996a (diff)
Reload page on 401 since there is an authentification problem
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files')
-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 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?