mirror of
https://github.com/status-im/status-go.git
synced 2025-01-12 15:45:07 +00:00
Exclude watch only accounts from permissions checks
This commit is contained in:
parent
e0814a488f
commit
27f0884b51
@ -3920,7 +3920,9 @@ func (m *Messenger) CheckPermissionsToJoinCommunity(request *requests.CheckPermi
|
||||
}
|
||||
|
||||
for _, a := range accounts {
|
||||
addresses = append(addresses, gethcommon.HexToAddress(a.Address.Hex()))
|
||||
if a.IsWalletNonWatchOnlyAccount() {
|
||||
addresses = append(addresses, gethcommon.HexToAddress(a.Address.Hex()))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for _, v := range request.Addresses {
|
||||
|
Loading…
x
Reference in New Issue
Block a user