mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 08:50:09 +00:00
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
|
response.Permissions[tokenPermission.Id].ID = tokenPermission.Id
|
||||||
|
|
||||||
if tokenPermission.IsPrivate && !permissionRequirementsMet {
|
|
||||||
delete(response.Permissions, tokenPermission.Id)
|
|
||||||
}
|
|
||||||
|
|
||||||
// multiple permissions are treated as logical OR, meaning
|
// multiple permissions are treated as logical OR, meaning
|
||||||
// if only one of them is fulfilled, the user gets permission
|
// if only one of them is fulfilled, the user gets permission
|
||||||
// to join and we can stop early
|
// to join and we can stop early
|
||||||
|
Loading…
x
Reference in New Issue
Block a user