Skip to content

Commit 77fb729

Browse files
committed
fix(Sharing): Only list users in select input
Signed-off-by: Louis Chmn <louis@chmn.me>
1 parent 086a97e commit 77fb729

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/mixins/UserSearchMixin.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ export default {
8686
async getSuggestions(query) {
8787
this.loading = true
8888

89-
// Search for all used share-types, except public link.
90-
const shareType = this.SHARE_TYPES_USED.filter(
91-
(type) => type !== this.SHARE_TYPES.SHARE_TYPE_LINK,
92-
)
93-
9489
try {
9590
const request = await axios.get(
9691
generateOcsUrl('apps/files_sharing/api/v1/sharees'),
@@ -100,7 +95,7 @@ export default {
10095
itemType: 'file',
10196
perPage: this.maxAutocompleteResults,
10297
search: query,
103-
shareType,
98+
shareType: [this.SHARE_TYPES.SHARE_TYPE_USER],
10499
},
105100
},
106101
)

0 commit comments

Comments
 (0)