Query lookup by default
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
31645c615f
commit
08c4b86678
3 changed files with 8 additions and 0 deletions
BIN
core/js/dist/share_backend.js
vendored
BIN
core/js/dist/share_backend.js
vendored
Binary file not shown.
BIN
core/js/dist/share_backend.js.map
vendored
BIN
core/js/dist/share_backend.js.map
vendored
Binary file not shown.
|
@ -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',
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue