// Copyright 2023, DragonflyDB authors. All rights reserved. // See LICENSE for licensing terms. // #pragma once #include #include "facade/command_id.h" #include "server/acl/acl_log.h" #include "server/conn_context.h" namespace dfly::acl { bool IsUserAllowedToInvokeCommandGeneric(uint32_t acl_cat, const std::vector& acl_commands, const AclKeys& keys, CmdArgList tail_args, const CommandId& id); bool IsUserAllowedToInvokeCommand(const ConnectionContext& cntx, const CommandId& id, CmdArgList tail_args); } // namespace dfly::acl