mirror of
https://github.com/ergochat/ergo.git
synced 2025-01-03 08:32:43 +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.
|
// User must have "kill" privileges to logout other user sessions.
|
||||||
if target != client {
|
if target != client {
|
||||||
oper := client.Oper()
|
oper := client.Oper()
|
||||||
if oper.HasRoleCapab("kill") {
|
if !oper.HasRoleCapab("kill") {
|
||||||
service.Notice(rb, client.t("Insufficient oper privs"))
|
service.Notice(rb, client.t("Insufficient oper privs"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user