test
This commit is contained in:
parent
f17f48921d
commit
2ec6899a18
@ -70,7 +70,7 @@ func (ao *CollaborativeArea) Clear(peerID string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ao *CollaborativeArea) VerifyAuth(peerID string, groups []string) bool {
|
func (ao *CollaborativeArea) VerifyAuth(peerID string, groups []string) bool {
|
||||||
if ao.AllowedPeersGroup != nil && len(ao.AllowedPeersGroup) > 0 || config.GetConfig().Whitelist {
|
if ao.AllowedPeersGroup != nil || config.GetConfig().Whitelist {
|
||||||
if grps, ok := ao.AllowedPeersGroup[peerID]; ok || config.GetConfig().Whitelist {
|
if grps, ok := ao.AllowedPeersGroup[peerID]; ok || config.GetConfig().Whitelist {
|
||||||
if slices.Contains(grps, "*") || (!ok && config.GetConfig().Whitelist) {
|
if slices.Contains(grps, "*") || (!ok && config.GetConfig().Whitelist) {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user