diff --git a/src/browser/BrowserService.cpp b/src/browser/BrowserService.cpp index 73a72f687..f90a91f98 100644 --- a/src/browser/BrowserService.cpp +++ b/src/browser/BrowserService.cpp @@ -847,13 +847,14 @@ QJsonObject BrowserService::prepareEntry(const Entry* entry) BrowserService::Access BrowserService::checkAccess(const Entry* entry, const QString& host, const QString& submitHost, const QString& realm) { + if (entry->isExpired()) { + return browserSettings()->allowExpiredCredentials() ? Allowed : Denied; + } + BrowserEntryConfig config; if (!config.load(entry)) { return Unknown; } - if (entry->isExpired()) { - return browserSettings()->allowExpiredCredentials() ? Allowed : Denied; - } if ((config.isAllowed(host)) && (submitHost.isEmpty() || config.isAllowed(submitHost))) { return Allowed; }