diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-31 23:26:40 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-31 23:26:40 +0100 |
commit | c1072d0c09428525929a5e6154738245a23e5225 (patch) | |
tree | daac139f4a815c3f5c182eae6e568dfcbb9137ae /apps/files/js/files.js | |
parent | 2af6d74bc1bfb8b3ade363c6e8fbdc1b25a42af2 (diff) | |
download | nextcloud-server-c1072d0c09428525929a5e6154738245a23e5225.tar.gz nextcloud-server-c1072d0c09428525929a5e6154738245a23e5225.zip |
call ajax scan only if a user is logged in - otherwise we'll get a 500
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 4 |
1 files changed, 4 insertions, 0 deletions
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 = ''; } |