diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp index dd7162cfa..5d335b223 100644 --- a/src/gui/sharelinkwidget.cpp +++ b/src/gui/sharelinkwidget.cpp @@ -251,7 +251,9 @@ void ShareLinkWidget::slotSharesFetched(const QList> &shar _ui->pushButton_setPassword->hide(); } - _ui->checkBox_expire->setEnabled(true); + _ui->checkBox_expire->setEnabled( + !_account->capabilities().sharePublicLinkEnforceExpireDate()); + _ui->calendar->setMinimumDate(QDate::currentDate().addDays(1)); if (_share->getExpireDate().isValid()) { _ui->calendar->setDate(_share->getExpireDate());