Fix ACL message handling for root channel.

This commit is contained in:
Mikkel Krautz 2011-04-12 00:02:08 +02:00
parent 96684f41d4
commit c3a75d2b42

View file

@ -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. // Also constructs a usermap that is a set user ids from the channel's groups.
reply.Groups = []*mumbleproto.ACL_ChanGroup{} reply.Groups = []*mumbleproto.ACL_ChanGroup{}
for name, _ := range allnames { for name, _ := range allnames {
group := channel.Groups[name] var (
pgroup, ok := parent.Groups[name] group *Group
if !ok { pgroup *Group
pgroup = nil )
group = channel.Groups[name]
if parent != nil {
pgroup = parent.Groups[name]
} }
mpgroup := &mumbleproto.ACL_ChanGroup{} mpgroup := &mumbleproto.ACL_ChanGroup{}