summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
diff options
context:
space:
mode:
authorfenn-cs <fenn25.fn@gmail.com>2024-05-29 12:25:41 +0100
committerfenn-cs <fenn25.fn@gmail.com>2024-05-29 12:36:26 +0100
commitc8a90f04b7db63a77339db57485138eb3512871b (patch)
tree4a305e7de87702645ea5e0dbe7987147b1f091b9 /apps/files_sharing/lib/Controller
parentfca38e12c8fd76be717ad4fe7f1d0eaecfb09288 (diff)
downloadnextcloud-server-c8a90f04b7db63a77339db57485138eb3512871b.tar.gz
nextcloud-server-c8a90f04b7db63a77339db57485138eb3512871b.zip
fix(ShareApiClients): Maintain meaning of `''` and null for share api clients
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'apps/files_sharing/lib/Controller')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index b9f89109304..36a515bf29d 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -775,19 +775,19 @@ class ShareAPIController extends OCSController {
$share->setPermissions($permissions);
} elseif ($shareType === IShare::TYPE_ROOM) {
try {
- $this->getRoomShareHelper()->createShare($share, $shareWith, $permissions, $expireDate);
+ $this->getRoomShareHelper()->createShare($share, $shareWith, $permissions, $expireDate ?? '');
} catch (QueryException $e) {
throw new OCSForbiddenException($this->l->t('Sharing %s failed because the back end does not support room shares', [$node->getPath()]));
}
} elseif ($shareType === IShare::TYPE_DECK) {
try {
- $this->getDeckShareHelper()->createShare($share, $shareWith, $permissions, $expireDate);
+ $this->getDeckShareHelper()->createShare($share, $shareWith, $permissions, $expireDate ?? '');
} catch (QueryException $e) {
throw new OCSForbiddenException($this->l->t('Sharing %s failed because the back end does not support room shares', [$node->getPath()]));
}
} elseif ($shareType === IShare::TYPE_SCIENCEMESH) {
try {
- $this->getSciencemeshShareHelper()->createShare($share, $shareWith, $permissions, $expireDate);
+ $this->getSciencemeshShareHelper()->createShare($share, $shareWith, $permissions, $expireDate ?? '');
} catch (QueryException $e) {
throw new OCSForbiddenException($this->l->t('Sharing %s failed because the back end does not support ScienceMesh shares', [$node->getPath()]));
}