Skip to content

Commit

Permalink
Fixes #9255 Access Confirmation dialog should not be shown with optio…
Browse files Browse the repository at this point in the history
…n ConfirmAccessItem=true
  • Loading branch information
Oleg Muraviov committed Aug 3, 2023
1 parent a01400e commit 9eda98b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fdosecrets/objects/Prompt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 9eda98b

Please sign in to comment.