fix(permisisons)_: private permisisons shouldn't affect the check (#5116)

Fixes https://github.com/status-im/status-desktop/issues/14608
This commit is contained in:
Jonathan Rainville 2024-05-08 14:45:58 -04:00 committed by GitHub
parent 3e4367a7cf
commit db0cc10a73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -412,10 +412,6 @@ func (p *DefaultPermissionChecker) CheckPermissions(permissions []*CommunityToke
}
response.Permissions[tokenPermission.Id].ID = tokenPermission.Id
if tokenPermission.IsPrivate && !permissionRequirementsMet {
delete(response.Permissions, tokenPermission.Id)
}
// multiple permissions are treated as logical OR, meaning
// if only one of them is fulfilled, the user gets permission
// to join and we can stop early