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 55ca5ca34c
commit 4ea0a1058c
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

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;
}