call ajax scan only if a user is logged in - otherwise we'll get a 500
This commit is contained in:
parent
2af6d74bc1
commit
c1072d0c09
|
@ -776,6 +776,10 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
function scanFiles(force, dir){
|
||||
if (!OC.currentUser) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(!dir){
|
||||
dir = '';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue