3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-11 06:29:29 +01:00

fix incorrect permissions check in NS CLIENTS LOGOUT

This commit is contained in:
Shivaram Lingamneni 2021-02-02 16:45:38 -05:00
parent e54d8cfcd9
commit de392aea5a

View File

@ -1148,7 +1148,7 @@ func nsClientsLogoutHandler(service *ircService, server *Server, client *Client,
// User must have "kill" privileges to logout other user sessions.
if target != client {
oper := client.Oper()
if oper.HasRoleCapab("kill") {
if !oper.HasRoleCapab("kill") {
service.Notice(rb, client.t("Insufficient oper privs"))
return
}