diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2024-03-20 16:41:26 +0100 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2024-06-13 18:34:51 +0200 |
commit | 0bee2a6fcaefaa5528fc3dc1c8eb89d08838a430 (patch) | |
tree | 208f724ad5af3524f5b029ce102adc4ae35f6322 /lib/public/Share/IShare.php | |
parent | 0ab1cc5f17b2941364572007f7cf120342495d87 (diff) | |
download | nextcloud-server-0bee2a6fcaefaa5528fc3dc1c8eb89d08838a430.tar.gz nextcloud-server-0bee2a6fcaefaa5528fc3dc1c8eb89d08838a430.zip |
fix(shareManager): Respect empty `expireDate` in server
If `expireDate` is an empty string and not `null` then the server should not set a default.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'lib/public/Share/IShare.php')
-rw-r--r-- | lib/public/Share/IShare.php | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php index e5a943b0bac..e3b6349bbfa 100644 --- a/lib/public/Share/IShare.php +++ b/lib/public/Share/IShare.php @@ -385,21 +385,39 @@ interface IShare { /** * Set the expiration date * - * @param null|\DateTime $expireDate + * @param \DateTime|null $expireDate * @return \OCP\Share\IShare The modified object * @since 9.0.0 */ - public function setExpirationDate($expireDate); + public function setExpirationDate(\DateTime|null $expireDate); /** * Get the expiration date * - * @return null|\DateTime + * @return \DateTime|null * @since 9.0.0 */ public function getExpirationDate(); /** + * Set overwrite flag for falsy expiry date vavlues + * + * @param bool $noExpirationDate + * @return \OCP\Share\IShare The modified object + * @since 28.0.7 + */ + public function setNoExpirationDate(bool $noExpirationDate); + + + /** + * Get value of overwrite falsy expiry date flag + * + * @return bool + * @since 28.0.7 + */ + public function getNoExpirationDate(); + + /** * Is the share expired ? * * @return boolean |