Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Reload page on 401 since there is an authentification problem
Signed-off-by: Carl Schwan <[email protected]>
  • Loading branch information
CarlSchwan committed Dec 7, 2021
commit 170ca81760007a31bd7bb65a5a0b17a67aab84e6
8 changes: 3 additions & 5 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down