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

This commit is contained in:
Thomas Mueller 2013-01-31 23:26:40 +01:00
parent 2af6d74bc1
commit c1072d0c09
1 changed files with 4 additions and 0 deletions

View File

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