summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index e2b8731c877..972f0e63144 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -776,7 +776,7 @@ var OCP = {},
return;
}
- if (_.contains([302, 303, 307, 401], xhr.status)) {
+ if (_.contains([302, 303, 307, 401], xhr.status) && OC.currentUser) {
// sometimes "beforeunload" happens later, so need to defer the reload a bit
setTimeout(function() {
if (!self._userIsNavigatingAway && !self._reloadCalled) {