From f9778328c483f7a5a0b565f0f9d539fb175bec55 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sat, 6 Apr 2019 23:37:18 +0200 Subject: [PATCH] [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 cf7d20689cee49d98105cc079ccb715e7ea9fad5 --- app/lib/dal/fileDAL.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/dal/fileDAL.ts b/app/lib/dal/fileDAL.ts index 36603d84f..bf6d449f2 100644 --- a/app/lib/dal/fileDAL.ts +++ b/app/lib/dal/fileDAL.ts @@ -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; } -- GitLab