Get a command from the original command table, that is not affected * by the command renaming operations: we base all the ACL work from that * table, so that ACLs are valid regardless of command renaming. */
| 682 | * by the command renaming operations: we base all the ACL work from that |
| 683 | * table, so that ACLs are valid regardless of command renaming. */ |
| 684 | struct redisCommand *ACLLookupCommand(const char *name) { |
| 685 | struct redisCommand *cmd; |
| 686 | sds sdsname = sdsnew(name); |
| 687 | cmd = (redisCommand*)dictFetchValue(g_pserver->orig_commands, sdsname); |
| 688 | sdsfree(sdsname); |
| 689 | return cmd; |
| 690 | } |
| 691 | |
| 692 | /* Flush the array of allowed subcommands for the specified user |
| 693 | * and command ID. */ |
no test coverage detected