diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-03-02 17:42:51 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-03-07 22:02:19 +0100 |
commit | c9476115b0504fc132169b4fa4ef55d6f97a40ab (patch) | |
tree | 4959c99eb6d28ef82793ae3d1bd5bfe5492bdd5c /apps | |
parent | 9232a124e22e65dbdb36e6b103bf6791e04cb140 (diff) | |
download | nextcloud-server-c9476115b0504fc132169b4fa4ef55d6f97a40ab.tar.gz nextcloud-server-c9476115b0504fc132169b4fa4ef55d6f97a40ab.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')
-rw-r--r-- | apps/files/js/filelist.js | 4 | ||||
-rw-r--r-- | apps/files_trashbin/js/filelist.js | 4 |
2 files changed, 8 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 diff --git a/apps/files_trashbin/js/filelist.js b/apps/files_trashbin/js/filelist.js index 5812aff82f7..feed28d8fc7 100644 --- a/apps/files_trashbin/js/filelist.js +++ b/apps/files_trashbin/js/filelist.js @@ -325,6 +325,10 @@ return false; } + if (result.status === 401) { + return false; + } + // Firewall Blocked request? if (result.status === 403) { // Go home |