From 46ee1a6917c15faaa1e8bbdcd5ee4b256514a69d Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 8 Jul 2024 11:04:09 -0700 Subject: [PATCH] ioc: ACF fix write permit when groups are present Allow operation if any credential is acceptable. --- ioc/securityclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ioc/securityclient.cpp b/ioc/securityclient.cpp index eb21c7b..33c7bd4 100644 --- a/ioc/securityclient.cpp +++ b/ioc/securityclient.cpp @@ -40,7 +40,7 @@ SecurityClient::~SecurityClient() { } bool SecurityClient::canWrite() const { - return std::all_of(cli.begin(), cli.end(), [](ASCLIENTPVT asc) { + return std::any_of(cli.begin(), cli.end(), [](ASCLIENTPVT asc) { return asCheckPut(asc); }); }