Compare commits

..

No commits in common. "2ec6899a18652d955686ac7ecf74a613a3a6b64f" and "cb21db672bb5ac62ece3197eec6acd973c19a4c9" have entirely different histories.

View File

@ -70,9 +70,9 @@ func (ao *CollaborativeArea) Clear(peerID string) {
}
func (ao *CollaborativeArea) VerifyAuth(peerID string, groups []string) bool {
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) {
if ao.AllowedPeersGroup != nil && len(ao.AllowedPeersGroup) > 0 {
if grps, ok := ao.AllowedPeersGroup[peerID]; ok {
if slices.Contains(grps, "*") {
return true
}
for _, grp := range grps {