-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
ACL is not fetched when I use "select" #571
Comments
This is a bug. Are you willing to write a failing Test and open a pull request with it? We’ll be able to fix it soon. |
I want to, but I have no idea how! Is there a guide or something? |
@Samigos you can check our contributing guide: https://github.com/parse-community/parse-server/blob/master/CONTRIBUTING.md As well as all other specs in this file for example: https://github.com/parse-community/parse-server/blob/master/spec/ParseQuery.spec.js#L3002 |
@i believe in Parse-Server, ACL include is enforced (as well as ObjectId, createdAt, updatedAt ..) I think the problem resides in JS-SDK I think the main issue is happening here I think, It is working for createdAt & updatedAt since the getter function in Parse.Object access the json directly. @Samigos I just took a quick look, I am not sure that what I said is 100% correct. This could help you target the bug I will take a stab at it in a couple of days if I have the time |
You can select ACL with a dumb workaround:
This is how they are stored in MongoDB, and will be passed on to it. Mongo will return |
I pushed a fix, this is gonna be part of the next release of parse-server. ACL's will always be included. |
Parse Server: 2.7.4
I have an
or
query and I want to add some additional constraints to it, like so:As you can see, I use the
select
constraint... I realised though, that whenselect
is being used,ACL
is not a part of the fetched object(s), even if I explicitly add it, like so:Any idea why's this happening? What could I do to as a workaround?
The text was updated successfully, but these errors were encountered: