summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-01-31 16:49:22 +0100
committerantirez <antirez@gmail.com>2019-01-31 16:49:22 +0100
commitc7cd10dfe96e91582d7e341b20334464d5c51830 (patch)
tree5a06e0dc440cc631b3204b13bd9ee1f671abaf05 /src/server.h
parent479f7f7af4c4778c4c6fc0a93b807c98af08a353 (diff)
downloadredis-c7cd10dfe96e91582d7e341b20334464d5c51830.tar.gz
ACL: flags refactoring, function to describe user.
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server.h b/src/server.h
index 1e38b8ae6..13d29308f 100644
--- a/src/server.h
+++ b/src/server.h
@@ -740,9 +740,10 @@ typedef struct readyList {
command ID we can set in the user
is USER_COMMAND_BITS_COUNT-1. */
#define USER_FLAG_ENABLED (1<<0) /* The user is active. */
-#define USER_FLAG_ALLKEYS (1<<1) /* The user can mention any key. */
-#define USER_FLAG_ALLCOMMANDS (1<<2) /* The user can run all commands. */
-#define USER_FLAG_NOPASS (1<<3) /* The user requires no password, any
+#define USER_FLAG_DISABLED (1<<1) /* The user is disabled. */
+#define USER_FLAG_ALLKEYS (1<<2) /* The user can mention any key. */
+#define USER_FLAG_ALLCOMMANDS (1<<3) /* The user can run all commands. */
+#define USER_FLAG_NOPASS (1<<4) /* The user requires no password, any
provided password will work. For the
default user, this also means that
no AUTH is needed, and every