mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
parent
1becb6137a
commit
c46f3d37b1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user