Skip to content
Snippets Groups Projects
Commit f8089284 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] critical: a revoked member should not try to be revoked again

parent c8987693
No related branches found
No related tags found
No related merge requests found
...@@ -314,12 +314,24 @@ export class FileDAL { ...@@ -314,12 +314,24 @@ export class FileDAL {
} }
} }
getWrittenIdtyByPubkey(pubkey:string) { async getWrittenIdtyByPubkey(pubkey:string) {
return this.iindexDAL.getFromPubkey(pubkey) const idty = await this.iindexDAL.getFromPubkey(pubkey)
if (!idty) {
return null;
}
const membership = await this.mindexDAL.getReducedMS(pubkey)
idty.revoked_on = membership.revoked_on
return idty;
} }
getWrittenIdtyByUID(uid:string) { async getWrittenIdtyByUID(uid:string) {
return this.iindexDAL.getFromUID(uid) const idty = await this.iindexDAL.getFromUID(uid)
if (!idty) {
return null;
}
const membership = await this.mindexDAL.getReducedMS(idty.pub)
idty.revoked_on = membership.revoked_on
return idty;
} }
async fillInMembershipsOfIdentity(queryPromise:Promise<DBIdentity>) { async fillInMembershipsOfIdentity(queryPromise:Promise<DBIdentity>) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment