mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 03:49:20 +03:00
Merge pull request #4982 from nextcloud/bugfix/enforced-max-expire-date-link-share-fix
Fix link shares default expire date being enforced as maximum expire date even when maximum date enforcement is disabled on the server
This commit is contained in:
commit
e5d5471fb6
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ void ShareLinkWidget::toggleExpireDateOptions(const bool enable)
|
|||
_ui->calendar->setDate(date);
|
||||
_ui->calendar->setMinimumDate(QDate::currentDate().addDays(1));
|
||||
|
||||
if(_account->capabilities().sharePublicLinkExpireDateDays() > 0) {
|
||||
if(_account->capabilities().sharePublicLinkEnforceExpireDate()) {
|
||||
_ui->calendar->setMaximumDate(QDate::currentDate().addDays(_account->capabilities().sharePublicLinkExpireDateDays()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue