Просмотр исходного кода

fix incorrect permissions check in NS CLIENTS LOGOUT

tags/v2.5.1^2
Shivaram Lingamneni 3 лет назад
Родитель
Сommit
de392aea5a
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      irc/nickserv.go

+ 1
- 1
irc/nickserv.go Просмотреть файл

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

Загрузка…
Отмена
Сохранить