diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-28 17:13:17 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-28 22:45:03 +0200 |
commit | 4e87ac2bb9604deb327ccc9a8e5e1ee98046e774 (patch) | |
tree | 409644521f15c98f01ce8b92eb0c6af6e1e0e392 | |
parent | 0dc649f3914c4917cbc679827fb4f080e4679b35 (diff) | |
download | nextcloud-server-4e87ac2bb9604deb327ccc9a8e5e1ee98046e774.tar.gz nextcloud-server-4e87ac2bb9604deb327ccc9a8e5e1ee98046e774.zip |
make sure that we set the expire date if a date is adefault date is set
-rw-r--r-- | lib/private/share/share.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index af286e7154e..2fc5598146c 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -595,6 +595,7 @@ class Share extends \OC\Share\Constants { $shareWith['group'] = $group; $shareWith['users'] = array_diff(\OC_Group::usersInGroup($group), array($uidOwner)); } else if ($shareType === self::SHARE_TYPE_LINK) { + $updateExistingShare = false; if (\OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes') == 'yes') { // when updating a link share @@ -629,7 +630,7 @@ class Share extends \OC\Share\Constants { throw new \Exception($message_t); } - if (!empty($updateExistingShare) && + if ($updateExistingShare === false && self::isDefaultExpireDateEnabled() && empty($expirationDate)) { $expirationDate = Helper::calcExpireDate(); |