Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cant able to create write access with public #578

Closed
kesavananbu opened this issue Mar 6, 2019 · 1 comment
Closed

I cant able to create write access with public #578

kesavananbu opened this issue Mar 6, 2019 · 1 comment

Comments

@kesavananbu
Copy link

const access = {
write : ['*'],
}
const db = await orbitNode._orbitdb.keyvalue('UsersCredentials',access)

Is the Structure correct ?

I Could not able to able to add entry to this. This Another peer which using Address of the db above created.
Could not append entry, key "04d29d042e28b3ab201eb453486ca280dd80a157b806e5826a15d71fe3147b1fba059399d2c6e339c646afcfea42fd81a18fa73231bd6ecc8e75cd4947ead8b897" is not allowed to write to the log

@aphelionz
Copy link
Member

Ah, you need to wrap that in an accessController key:

{
  accessController: {
    write: ['*'] // Allow anyone to write to the channel
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants