1919 * @author Morris Jobke <hey@morrisjobke.de>
2020 * @author Robin Appelman <robin@icewind.nl>
2121 * @author Roeland Jago Douma <roeland@famdouma.nl>
22+ * @author Kate Döen <kate.doeen@nextcloud.com>
2223 *
2324 * @license AGPL-3.0
2425 *
@@ -85,7 +86,6 @@ class ShareesAPIController extends OCSController {
8586 'emails ' => [],
8687 'circles ' => [],
8788 'rooms ' => [],
88- 'deck ' => [],
8989 ],
9090 'users ' => [],
9191 'groups ' => [],
@@ -95,7 +95,6 @@ class ShareesAPIController extends OCSController {
9595 'lookup ' => [],
9696 'circles ' => [],
9797 'rooms ' => [],
98- 'deck ' => [],
9998 'lookupEnabled ' => false ,
10099 ];
101100
@@ -187,10 +186,6 @@ public function search(string $search = '', string $itemType = null, int $page =
187186 if ($ this ->shareManager ->shareProviderExists (IShare::TYPE_ROOM )) {
188187 $ shareTypes [] = IShare::TYPE_ROOM ;
189188 }
190-
191- if ($ this ->shareManager ->shareProviderExists (IShare::TYPE_DECK )) {
192- $ shareTypes [] = IShare::TYPE_DECK ;
193- }
194189 } else {
195190 if ($ this ->shareManager ->allowGroupSharing ()) {
196191 $ shareTypes [] = IShare::TYPE_GROUP ;
@@ -203,10 +198,6 @@ public function search(string $search = '', string $itemType = null, int $page =
203198 $ shareTypes [] = IShare::TYPE_CIRCLE ;
204199 }
205200
206- if ($ this ->shareManager ->shareProviderExists (IShare::TYPE_DECK )) {
207- $ shareTypes [] = IShare::TYPE_DECK ;
208- }
209-
210201 if ($ shareType !== null && is_array ($ shareType )) {
211202 $ shareTypes = array_intersect ($ shareTypes , $ shareType );
212203 } elseif (is_numeric ($ shareType )) {
0 commit comments