diff options
Diffstat (limited to 'apps/files/js/filelist.js')
-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 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? |