Skip to content

Commit

Permalink
Fix link shares default expire date being enforced as maximum expire …
Browse files Browse the repository at this point in the history
…date even when maximum date enforcement is disabled on the server

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Sep 28, 2022
1 parent 6a117be commit b7cb652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/sharelinkwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}

Expand Down

0 comments on commit b7cb652

Please sign in to comment.