diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-12-07 19:48:28 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-12-08 14:45:07 +0300 |
commit | 41f6437598b6b75e615a437753e4165fdd3de755 (patch) | |
tree | 17531f97e31cc776b3c295cca1bfc3a68dce6b75 /apps/files | |
parent | 2d5192b807170d5f4b3872427d817dca1217996a (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.js | 8 |
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? |