From df04133551e4beb22b8c2d8892f11aaa54be922e Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 23 Jan 2025 08:48:22 +0100 Subject: [PATCH] light modification --- models/collaborative_area/collaborative_area.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/collaborative_area/collaborative_area.go b/models/collaborative_area/collaborative_area.go index 3d6fc38..77f3b1b 100644 --- a/models/collaborative_area/collaborative_area.go +++ b/models/collaborative_area/collaborative_area.go @@ -43,6 +43,9 @@ type CollaborativeArea struct { } func (ao *CollaborativeArea) Clear(peerID string) { + if ao.AllowedPeersGroup == nil { + ao.AllowedPeersGroup = map[string][]string{} + } ao.CreatorID = peerID if config.GetConfig().Whitelist { ao.AllowedPeersGroup[peerID] = []string{"*"}