diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 3d09d6aa2b6..8aec701e53f 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -776,6 +776,10 @@ $(document).ready(function() { }); function scanFiles(force, dir){ + if (!OC.currentUser) { + return; + } + if(!dir){ dir = ''; }