From 2ec6899a18652d955686ac7ecf74a613a3a6b64f Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 2 Dec 2024 13:19:23 +0100 Subject: [PATCH] test --- models/collaborative_area/collaborative_area.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/collaborative_area/collaborative_area.go b/models/collaborative_area/collaborative_area.go index 06254db..2344d72 100644 --- a/models/collaborative_area/collaborative_area.go +++ b/models/collaborative_area/collaborative_area.go @@ -70,7 +70,7 @@ func (ao *CollaborativeArea) Clear(peerID string) { } 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 slices.Contains(grps, "*") || (!ok && config.GetConfig().Whitelist) { return true