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:
parent
e54d8cfcd9
commit
de392aea5a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user