Query lookup by default

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2019-12-10 16:15:00 +01:00 committed by Roeland Jago Douma
parent 174bc54911
commit f3d9c1f005
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 8 additions and 0 deletions

View File

@ -145,6 +145,14 @@
var deferred = $.Deferred();
var view = this;
// query lookup GS by default if enabled
var capabilities = OC.getCapabilities()
if (capabilities.files_sharing
&& capabilities.files_sharing.sharee
&& capabilities.files_sharing.sharee.query_lookup_default) {
this._lookup = true;
}
$.get(
OC.linkToOCS('apps/files_sharing/api/v1') + 'sharees',
{