refactor(teams): adjust expected itemType and remove remote group type from member search controller

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
pull/57782/head
Cristian Scheid 4 months ago
parent bc24c28529
commit 1136ce09cb
  1. 6
      apps/files_sharing/lib/Controller/ShareesAPIController.php

@ -143,7 +143,7 @@ class ShareesAPIController extends OCSController {
if ($this->shareManager->shareProviderExists(IShare::TYPE_ROOM)) {
$shareTypes[] = IShare::TYPE_ROOM;
}
} elseif ($itemType === 'contacts') {
} elseif ($itemType === 'teams') {
if ($this->shareManager->allowGroupSharing()) {
$shareTypes[] = IShare::TYPE_GROUP;
}
@ -152,10 +152,6 @@ class ShareesAPIController extends OCSController {
$shareTypes[] = IShare::TYPE_REMOTE;
}
if ($this->federatedShareProvider->isOutgoingServer2serverGroupShareEnabled()) {
$shareTypes[] = IShare::TYPE_REMOTE_GROUP;
}
$shareTypes[] = IShare::TYPE_EMAIL;
} else {
if ($this->shareManager->allowGroupSharing()) {

Loading…
Cancel
Save