orbitdb-archive / orbit-db-access-controllers

Access Controllers for OrbitDB
MIT License
27 stars 22 forks source link

Access Database from AccessController #56

Open CSDUMMI opened 3 years ago

CSDUMMI commented 3 years ago

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.

aphelionz commented 3 years ago

Is this._orbitdb available?

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

CSDUMMI commented 3 years ago

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