Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit f253bb6b authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Revert my 2 lasts commits: original sandbox case was good

parent 49794f42
export interface DBDocument {
pubkey?: string // idty table
from?: string // cert table
issuer?: string // membership table
issuers?: string[] // txs table
issuers?: string[]
}
\ No newline at end of file
......@@ -14,10 +14,7 @@ export class SandBox<T extends DBDocument> {
async acceptNewSandBoxEntry(element:T, pubkey:string) {
// Accept any document which has the exception pubkey (= the node pubkey)
if (element.pubkey === pubkey
|| element.from === pubkey
|| element.issuer === pubkey
|| (element.issuers !== undefined && element.issuers.indexOf(pubkey) !== -1)) {
if (element.issuers !== undefined && element.issuers.indexOf(pubkey) !== -1) {
return true;
}
const elements = await this.findElements()
......
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