MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ACLUserCanExecuteFutureCommands

Function ACLUserCanExecuteFutureCommands

src/acl.cpp:397–399  ·  view source on GitHub ↗

When +@all or allcommands is given, we set a reserved bit as well that we * can later test, to see if the user has the right to execute "future commands", * that is, commands loaded later via modules. */

Source from the content-addressed store, hash-verified

395 * can later test, to see if the user has the right to execute "future commands",
396 * that is, commands loaded later via modules. */
397int ACLUserCanExecuteFutureCommands(user *u) {
398 return ACLGetUserCommandBit(u,USER_COMMAND_BITS_COUNT-1);
399}
400
401/* Set the specified command bit for the specified user to 'value' (0 or 1).
402 * If the bit overflows the user internal representation, no operation

Callers 1

Calls 1

ACLGetUserCommandBitFunction · 0.85

Tested by

no test coverage detected