deepstream.io icon indicating copy to clipboard operation
deepstream.io copied to clipboard

Read permissions for provider

Open geecu opened this issue 10 years ago • 1 comments

How should the permissions be setup to allow read-only access to a record provided by a custom listener?

I setup a repository to replicate the problem: https://github.com/geecu/deepstream.io-test-permission

When the client tries to read a record, it sends a CR action to the server. The server doesn't have the record, so it treats it as a C action, denying the client's access to the record, so the request never reaches the listener.

geecu avatar Nov 24 '16 06:11 geecu

It just struck me: the client can have create permission on the record, without the write permission and then in works as expected.

It's a bit counter-intuitive to have the user create rights when all you need is read a record, even though the documentation can certainly be interpreted like that (create triggered when a record is requested for the first time) - it's quite subtle, IMO :)

Anyway, this issue can be closed now.

geecu avatar Dec 15 '16 13:12 geecu