mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-20 06:10:00 -08:00
Fix ACL message handling for root channel.
This commit is contained in:
parent
96684f41d4
commit
c3a75d2b42
1 changed files with 7 additions and 4 deletions
11
message.go
11
message.go
|
|
@ -943,10 +943,13 @@ func (server *Server) handleAclMessage(client *Client, msg *Message) {
|
|||
// Also constructs a usermap that is a set user ids from the channel's groups.
|
||||
reply.Groups = []*mumbleproto.ACL_ChanGroup{}
|
||||
for name, _ := range allnames {
|
||||
group := channel.Groups[name]
|
||||
pgroup, ok := parent.Groups[name]
|
||||
if !ok {
|
||||
pgroup = nil
|
||||
var (
|
||||
group *Group
|
||||
pgroup *Group
|
||||
)
|
||||
group = channel.Groups[name]
|
||||
if parent != nil {
|
||||
pgroup = parent.Groups[name]
|
||||
}
|
||||
|
||||
mpgroup := &mumbleproto.ACL_ChanGroup{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue