mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-12 10:55:46 +02:00
chore: add acl categories to all commands (#1711)
1. Add acl categories to each command 2. Extend `facade::CommandId` to include acl category 3. Add dragonfly extensions to acl categories for modules like search, json etc (since modules in redis do not have acl categories by default but in dragonfly these are not implemented as modules)
This commit is contained in:
parent
98c6aac4e7
commit
cfc04cf952
26 changed files with 709 additions and 355 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
#include "server/test_utils.h"
|
||||
|
||||
#include "server/acl/acl_commands_def.h"
|
||||
|
||||
extern "C" {
|
||||
#include "redis/zmalloc.h"
|
||||
}
|
||||
|
@ -67,7 +69,7 @@ void TestConnection::SendPubMessageAsync(PubMessage pmsg) {
|
|||
}
|
||||
|
||||
void TransactionSuspension::Start() {
|
||||
CommandId cid{"TEST", CO::WRITE | CO::GLOBAL_TRANS, -1, 0, 0, 0};
|
||||
CommandId cid{"TEST", CO::WRITE | CO::GLOBAL_TRANS, -1, 0, 0, 0, acl::NONE};
|
||||
|
||||
transaction_ = new dfly::Transaction{&cid};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue