mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
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
Block a user