demos for spacedust

fix account restriction

+6 -5
+6 -5
server/index.js
··· 188 188 189 189 // not yet public!! 190 190 if (!did || did !== adminDid) { 191 - res.setHeader('Content-Type', 'application/json'); 192 - res.writeHead(403); 193 - clearAccountCookie(res).end(JSON.stringify({ 194 - reason: 'the spacedust notifications demo isn\'t public yet!', 195 - })); 191 + clearAccountCookie(res) 192 + .setHeader('Content-Type', 'application/json') 193 + .writeHead(403) 194 + .end(JSON.stringify({ 195 + reason: 'the spacedust notifications demo isn\'t public yet!', 196 + })); 196 197 throw new Error('unauthorized'); 197 198 } 198 199