ACL: when client->user is NULL the client is a superuser.

Related to #5832.
This commit is contained in:
antirez 2019-02-12 09:44:25 +01:00
parent cc6d05a1f7
commit d5e4a7f439

View File

@ -1800,7 +1800,7 @@ sds catClientInfoString(sds s, client *client) {
(unsigned long long) getClientOutputBufferMemoryUsage(client),
events,
client->lastcmd ? client->lastcmd->name : "NULL",
client->user ? client->user->name : "");
client->user ? client->user->name : "(superuser)");
}
sds getAllClientsInfoString(int type) {