Exclude watch only accounts from permissions checks
This commit is contained in:
parent
e0814a488f
commit
27f0884b51
|
@ -3920,8 +3920,10 @@ func (m *Messenger) CheckPermissionsToJoinCommunity(request *requests.CheckPermi
|
|||
}
|
||||
|
||||
for _, a := range accounts {
|
||||
if a.IsWalletNonWatchOnlyAccount() {
|
||||
addresses = append(addresses, gethcommon.HexToAddress(a.Address.Hex()))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for _, v := range request.Addresses {
|
||||
addresses = append(addresses, gethcommon.HexToAddress(v))
|
||||
|
|
Loading…
Reference in New Issue