зеркало из https://github.com/nextcloud/desktop.git
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:
Коммит
e5d5471fb6
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче