mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
make sure that we set the expire date if a date is adefault date is set
This commit is contained in:
parent
0dc649f391
commit
4e87ac2bb9
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue