diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-03-02 17:42:51 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-03-03 09:09:30 +0100 |
commit | dbdf2173ac90e5f1bf09a970f05a745dec73e2e1 (patch) | |
tree | 91e1f89cb4683897b1b84eb545d195668c162b18 /apps/files_trashbin | |
parent | 6d90651ff0218e4bebea1b6221969abde8a9d841 (diff) | |
download | nextcloud-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_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 |