mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
fix(acl/admin_port): skip acl validation on admin port (#1997)
* skip all acl related functionality on admin port
This commit is contained in:
parent
6e76f8e6cc
commit
cbba6f4e11
10 changed files with 54 additions and 18 deletions
|
@ -13,6 +13,10 @@ namespace dfly::acl {
|
|||
|
||||
[[nodiscard]] bool IsUserAllowedToInvokeCommand(const ConnectionContext& cntx,
|
||||
const facade::CommandId& id) {
|
||||
if (cntx.skip_acl_validation) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const bool is_authed =
|
||||
IsUserAllowedToInvokeCommandGeneric(cntx.acl_categories, cntx.acl_commands, id);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue