Signed-off-by: Robin Appelman <robin@icewind.nl>tags/v11.0RC2
return; | 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 | // sometimes "beforeunload" happens later, so need to defer the reload a bit | ||||
setTimeout(function() { | setTimeout(function() { | ||||
if (!self._userIsNavigatingAway && !self._reloadCalled) { | if (!self._userIsNavigatingAway && !self._reloadCalled) { |