mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-22 19:12:05 -08:00
fix incorrect permissions check in NS CLIENTS LOGOUT
This commit is contained in:
parent
e54d8cfcd9
commit
de392aea5a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue