Skip to content

Commit 30858df

Browse files
committed
Remove Deck from Sharees API
Signed-off-by: jld3103 <jld3103yt@gmail.com>
1 parent 7ddb042 commit 30858df

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

apps/files_sharing/lib/Controller/ShareesAPIController.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
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

Comments
 (0)