Commit f9778328 authored by Moul's avatar Moul

[fix] Membership check of the sender of a certification was buggy

- Cf: https://forum.duniter.org/t/bug-a-l-ajout-d-une-certification-d-un-non-membre-dans-bloc/5952
- Introduced in cf7d2068
parent 2cf5af27
......@@ -898,10 +898,10 @@ export class FileDAL {
async isMember(pubkey:string):Promise<boolean> {
try {
const idty = await this.iindexDAL.getFromPubkey(pubkey);
if (idty === null) {
return false
if (idty && idty.member) {
return true
}
return true;
return false
} catch (err) {
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment