You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/files_sharing/lib/Controller/ShareAPIController.php
+19-30Lines changed: 19 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -627,16 +627,6 @@ public function createShare(
627
627
628
628
$share->setSendPasswordByTalk(true);
629
629
}
630
-
631
-
//Expire date
632
-
if ($expireDate !== '') {
633
-
try {
634
-
$expireDate = $this->parseDate($expireDate);
635
-
$share->setExpirationDate($expireDate);
636
-
} catch (\Exception$e) {
637
-
thrownewOCSNotFoundException($this->l->t('Invalid date, date format must be YYYY-MM-DD'));
638
-
}
639
-
}
640
630
} elseif ($shareType === IShare::TYPE_REMOTE) {
641
631
if (!$this->shareManager->outgoingServer2ServerSharesAllowed()) {
642
632
thrownewOCSForbiddenException($this->l->t('Sharing %1$s failed because the back end does not allow shares from type %2$s', [$node->getPath(), $shareType]));
0 commit comments