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