Skip to content

Commit ebbc6e6

Browse files
committed
fix(ShareApiClients): Maintain meaning of and null for share api clients
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
1 parent fca38e1 commit ebbc6e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -775,19 +775,19 @@ public function createShare(
775775
$share->setPermissions($permissions);
776776
} elseif ($shareType === IShare::TYPE_ROOM) {
777777
try {
778-
$this->getRoomShareHelper()->createShare($share, $shareWith, $permissions, $expireDate);
778+
$this->getRoomShareHelper()->createShare($share, $shareWith, $permissions, $expireDate ?? '');
779779
} catch (QueryException $e) {
780780
throw new OCSForbiddenException($this->l->t('Sharing %s failed because the back end does not support room shares', [$node->getPath()]));
781781
}
782782
} elseif ($shareType === IShare::TYPE_DECK) {
783783
try {
784-
$this->getDeckShareHelper()->createShare($share, $shareWith, $permissions, $expireDate);
784+
$this->getDeckShareHelper()->createShare($share, $shareWith, $permissions, $expireDate ?? '');
785785
} catch (QueryException $e) {
786786
throw new OCSForbiddenException($this->l->t('Sharing %s failed because the back end does not support room shares', [$node->getPath()]));
787787
}
788788
} elseif ($shareType === IShare::TYPE_SCIENCEMESH) {
789789
try {
790-
$this->getSciencemeshShareHelper()->createShare($share, $shareWith, $permissions, $expireDate);
790+
$this->getSciencemeshShareHelper()->createShare($share, $shareWith, $permissions, $expireDate ?? '');
791791
} catch (QueryException $e) {
792792
throw new OCSForbiddenException($this->l->t('Sharing %s failed because the back end does not support ScienceMesh shares', [$node->getPath()]));
793793
}

0 commit comments

Comments
 (0)