From f253bb6b9a5595062f0282b9c1b221aa7bd277fa Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Tue, 14 Nov 2017 18:54:26 +0100
Subject: [PATCH] [fix] Revert my 2 lasts commits: original sandbox case was
 good

---
 app/lib/dal/sqliteDAL/DocumentDAL.ts | 5 +----
 app/lib/dal/sqliteDAL/SandBox.ts     | 5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/app/lib/dal/sqliteDAL/DocumentDAL.ts b/app/lib/dal/sqliteDAL/DocumentDAL.ts
index fe8fc2e0b..d2097d7f0 100644
--- a/app/lib/dal/sqliteDAL/DocumentDAL.ts
+++ b/app/lib/dal/sqliteDAL/DocumentDAL.ts
@@ -1,6 +1,3 @@
 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
diff --git a/app/lib/dal/sqliteDAL/SandBox.ts b/app/lib/dal/sqliteDAL/SandBox.ts
index fe96af44e..09431c3aa 100644
--- a/app/lib/dal/sqliteDAL/SandBox.ts
+++ b/app/lib/dal/sqliteDAL/SandBox.ts
@@ -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()
-- 
GitLab