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:
parent
3e4367a7cf
commit
db0cc10a73
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue