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

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
This commit is contained in:
Cristian Scheid 2026-02-04 08:23:13 -03:00
parent bc24c28529
commit 1136ce09cb

View file

@ -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()) {