mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
GroupMemberCheck: Implement certhash matching.
This commit is contained in:
parent
1ee7aa6ac5
commit
a2a1f93372
1 changed files with 5 additions and 3 deletions
8
group.go
8
group.go
|
|
@ -189,9 +189,11 @@ func GroupMemberCheck(current *Channel, aclchan *Channel, name string, client *C
|
|||
}
|
||||
return false
|
||||
} else if hash {
|
||||
// The user is part of this group if the remaining name matches his
|
||||
// cert hash.
|
||||
log.Printf("GroupMemberCheck: Implement hash matching")
|
||||
// The client is part of this group if the remaining name matches the
|
||||
// client's cert hash.
|
||||
if strings.ToLower(name) == strings.ToLower(client.CertHash) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
} else if name == "none" {
|
||||
// None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue