mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Add missing return statements for a couple of permission checks.
This commit is contained in:
parent
b53aa8d722
commit
7955e522db
1 changed files with 2 additions and 0 deletions
|
|
@ -878,6 +878,7 @@ func (server *Server) handleBanListMessage(client *Client, msg *Message) {
|
|||
|
||||
if !server.HasPermission(client, server.root, BanPermission) {
|
||||
client.sendPermissionDenied(client, server.root, BanPermission)
|
||||
return
|
||||
}
|
||||
|
||||
if banlist.Query != nil && *banlist.Query != false {
|
||||
|
|
@ -949,6 +950,7 @@ func (server *Server) handleTextMessage(client *Client, msg *Message) {
|
|||
if channel, ok := server.Channels[int(chanid)]; ok {
|
||||
if !server.HasPermission(client, channel, TextMessagePermission) {
|
||||
client.sendPermissionDenied(client, channel, TextMessagePermission)
|
||||
return
|
||||
}
|
||||
for _, target := range channel.clients {
|
||||
clients[target.Session] = target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue