Commit ce42ee37 authored by Cédric Moreau's avatar Cédric Moreau

Fix: duplicate memberships are refused

parent 7993adc4
......@@ -68,7 +68,7 @@ function BlockchainService (conn, conf, IdentityService, PeeringService) {
Membership.getForHashAndIssuer(entry.hash, entry.issuer, next);
},
function (entries, next){
if (entries.length > 0 && entries[0].date > entry.date) {
if (entries.length > 0) {
next('Already received membership');
}
else Identity.isMember(entry.issuer, next);
......
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