mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
23 lines
717 B
C++
23 lines
717 B
C++
// Copyright 2023, DragonflyDB authors. All rights reserved.
|
|
// See LICENSE for licensing terms.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <utility>
|
|
|
|
#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<uint64_t>& 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
|