Fixes #9255 Access Confirmation dialog should not be shown with option ConfirmAccessItem=true

This commit is contained in:
Oleg Muraviov 2023-08-03 13:44:45 +03:00 committed by Jonathan White
parent a01400e88d
commit 29726e2bfd

View File

@ -23,6 +23,7 @@
#include "fdosecrets/objects/Session.h"
#include "fdosecrets/widgets/AccessControlDialog.h"
#include "FdoSecretsSettings.h"
#include "core/Entry.h"
#include "gui/MessageBox.h"
@ -298,7 +299,7 @@ namespace FdoSecrets
}
auto entry = item->backend();
auto uuid = entry->uuid();
if (client->itemKnown(uuid)) {
if (client->itemKnown(uuid) || !FdoSecrets::settings()->confirmAccessItem()) {
if (!client->itemAuthorized(uuid)) {
m_numRejected += 1;
}