From 30858df737cfb6898895c7bc7e22e0f3545366cc Mon Sep 17 00:00:00 2001 From: jld3103 Date: Fri, 3 Feb 2023 11:59:14 +0100 Subject: Remove Deck from Sharees API Signed-off-by: jld3103 --- apps/files_sharing/lib/Controller/ShareesAPIController.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'apps') diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php index 00e63ccb7b0..5a2e200c238 100644 --- a/apps/files_sharing/lib/Controller/ShareesAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php @@ -19,6 +19,7 @@ declare(strict_types=1); * @author Morris Jobke * @author Robin Appelman * @author Roeland Jago Douma + * @author Kate Döen * * @license AGPL-3.0 * @@ -85,7 +86,6 @@ class ShareesAPIController extends OCSController { 'emails' => [], 'circles' => [], 'rooms' => [], - 'deck' => [], ], 'users' => [], 'groups' => [], @@ -95,7 +95,6 @@ class ShareesAPIController extends OCSController { 'lookup' => [], 'circles' => [], 'rooms' => [], - 'deck' => [], 'lookupEnabled' => false, ]; @@ -187,10 +186,6 @@ class ShareesAPIController extends OCSController { if ($this->shareManager->shareProviderExists(IShare::TYPE_ROOM)) { $shareTypes[] = IShare::TYPE_ROOM; } - - if ($this->shareManager->shareProviderExists(IShare::TYPE_DECK)) { - $shareTypes[] = IShare::TYPE_DECK; - } } else { if ($this->shareManager->allowGroupSharing()) { $shareTypes[] = IShare::TYPE_GROUP; @@ -203,10 +198,6 @@ class ShareesAPIController extends OCSController { $shareTypes[] = IShare::TYPE_CIRCLE; } - if ($this->shareManager->shareProviderExists(IShare::TYPE_DECK)) { - $shareTypes[] = IShare::TYPE_DECK; - } - if ($shareType !== null && is_array($shareType)) { $shareTypes = array_intersect($shareTypes, $shareType); } elseif (is_numeric($shareType)) { -- cgit v1.2.3