Skip to content

Commit

Permalink
Merge pull request #4982 from nextcloud/bugfix/enforced-max-expire-da…
Browse files Browse the repository at this point in the history
…te-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
  • Loading branch information
claucambra authored Oct 3, 2022
2 parents 15bfccd + c671414 commit e5d5471
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 e5d5471

Please sign in to comment.