require local_ban capab to see uncloaked IPs

This commit is contained in:
Shivaram Lingamneni 2020-09-24 07:25:04 -04:00
parent bcdf61bd7a
commit d9f1c8e1c4
2 changed files with 2 additions and 2 deletions

View file

@ -1103,7 +1103,7 @@ func nsClientsHandler(server *Server, client *Client, command string, params []s
func nsClientsListHandler(server *Server, client *Client, params []string, rb *ResponseBuffer) {
target := client
hasPrivs := client.HasRoleCapabs("accreg")
hasPrivs := client.HasRoleCapabs("local_ban")
if 0 < len(params) {
target = server.clients.Get(params[0])
if target == nil {