light modification
This commit is contained in:
		| @@ -43,6 +43,9 @@ type CollaborativeArea struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| func (ao *CollaborativeArea) Clear(peerID string) { | func (ao *CollaborativeArea) Clear(peerID string) { | ||||||
|  | 	if ao.AllowedPeersGroup == nil { | ||||||
|  | 		ao.AllowedPeersGroup = map[string][]string{} | ||||||
|  | 	} | ||||||
| 	ao.CreatorID = peerID | 	ao.CreatorID = peerID | ||||||
| 	if config.GetConfig().Whitelist { | 	if config.GetConfig().Whitelist { | ||||||
| 		ao.AllowedPeersGroup[peerID] = []string{"*"} | 		ao.AllowedPeersGroup[peerID] = []string{"*"} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user