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
parent 31645c615f
commit 08c4b86678
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF
3 changed files with 8 additions and 0 deletions

Binary file not shown.

Binary file not shown.

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',
{