Skip to content
Snippets Groups Projects
Unverified Commit db4f5b18 authored by Éloïs's avatar Éloïs
Browse files

all DBDocuments are issuers

parent cf7d2068
No related branches found
No related tags found
3 merge requests!1222Add startup scripts,!1220Stable/ws2p v1.1 trymerge,!1208Stable/ws2p v1.1
export interface DBDocument { export interface DBDocument {
issuers?: string[] issuers: string[]
} }
\ No newline at end of file
...@@ -14,7 +14,7 @@ export class SandBox<T extends DBDocument> { ...@@ -14,7 +14,7 @@ export class SandBox<T extends DBDocument> {
async acceptNewSandBoxEntry(element:T, pubkey:string) { async acceptNewSandBoxEntry(element:T, pubkey:string) {
// Accept any document which has the exception pubkey (= the node pubkey) // Accept any document which has the exception pubkey (= the node pubkey)
if (element.issuers !== undefined && element.issuers.indexOf(pubkey) !== -1) { if (element.issuers.indexOf(pubkey) !== -1) {
return true; return true;
} }
const elements = await this.findElements() const elements = await this.findElements()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment