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/files_trashbin | |
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/files_trashbin')
-rw-r--r-- | apps/files_trashbin/js/filelist.js | 4 |
1 files changed, 4 insertions, 0 deletions
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 |