summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-03-02 17:42:51 +0100
committerVincent Petry <pvince81@owncloud.com>2016-03-03 09:09:30 +0100
commitdbdf2173ac90e5f1bf09a970f05a745dec73e2e1 (patch)
tree91e1f89cb4683897b1b84eb545d195668c162b18 /apps/files
parent6d90651ff0218e4bebea1b6221969abde8a9d841 (diff)
downloadnextcloud-server-dbdf2173ac90e5f1bf09a970f05a745dec73e2e1.tar.gz
nextcloud-server-dbdf2173ac90e5f1bf09a970f05a745dec73e2e1.zip
Return false on 401 in file list + trash file list
This gives a chance to the global ajax error handler to do its work if the session expired.
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 95fdac02c2d..fcdf6caaa59 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1436,6 +1436,10 @@
delete this._reloadCall;
this.hideMask();
+ if (status === 401) {
+ return false;
+ }
+
// Firewall Blocked request?
if (status === 403) {
// Go home