Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge branch 'bugfix/#20' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
phillmac committed Sep 11, 2019
2 parents 16160ee + b2d3e1e commit f1c2b50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/orbitdb-api.js
Expand Up @@ -265,8 +265,8 @@ class OrbitdbAPI {
method: ['POST', 'PUT'],
path: '/db/{dbname}/access/write',
handler: dbMiddleware( async (db, request, _h) => {
await db.access.grant('write', request.payload.id)
return {};
await db.access.grant('write', request.payload.id) &&
return {} || return new Boom.notImplemented('Access controller does not support setting write access');
})
},
{
Expand Down

0 comments on commit f1c2b50

Please sign in to comment.