orbit-db-access-controllers icon indicating copy to clipboard operation
orbit-db-access-controllers copied to clipboard

Access Database from AccessController

Open CSDUMMI opened this issue 3 years ago • 2 comments

In order to implement dynamic access roles, that can change through changes to the database, that the access controller is supposed to control, I have to be able to access the database from the Access Controller.

I saw in the orbit-db-access-controller.js file, that there is a _db field, that is just set to null though.

CSDUMMI avatar May 06 '21 12:05 CSDUMMI

Is this._orbitdb available?

https://github.com/tallylab/tallylab-orbitdb-access-controller/blob/master/src/tallylab-access-controller.js#L183

aphelionz avatar May 06 '21 14:05 aphelionz

Yes. But how does this._orbitdb help me in this situation?

CSDUMMI avatar May 06 '21 14:05 CSDUMMI