call ajax scan only if a user is logged in - otherwise we'll get a 500

remotes/origin/stable5
Thomas Mueller 12 years ago
parent 2af6d74bc1
commit c1072d0c09
  1. 4
      apps/files/js/files.js

@ -776,6 +776,10 @@ $(document).ready(function() {
});
function scanFiles(force, dir){
if (!OC.currentUser) {
return;
}
if(!dir){
dir = '';
}

Loading…
Cancel
Save