-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
LiveQuery does not respect class level permission #3427
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
Comments
Update
But still, even if NO session token is passed to the parse server, the LiveQuery should still respect the class level permission. |
Thanks for reporting the issue in detail, @flavordaaave. |
I’m working on it now, it will be part of 2.7.0 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Issue Description
I'm trying to set up a messaging functionality with parse server. So I have a Message class which includes a column
author
.author
is a Pointer to the user who created the message object.Then I've configured the class level permissions so that ONLY the

author
itself has read access:When I do a normal GET via the RESTApi, I only get the messages the user created itself (as expected).
But my LiveQuery is triggered for message created by other users...
Steps to reproduce
author
as a Pointer to the _User classExpected Results
Subscription event
created
is NOT triggeredActual Outcome
Subscription event
created
IS triggered even though the subscriber is NOT the authorEnvironment Setup
Logs/Trace
You can turn on additional logging by configuring VERBOSE=1 in your environment.
When subscribing to the Message class:
When creating a new message as a different user:
The text was updated successfully, but these errors were encountered: