-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Roles (ACL) not working properly #3833
Comments
This works in iOS |
you have to pass the sessionToken of the user making the request:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
Performing this code in the cloud gives an object not found error.
var query = new Parse.Query('classname'); query.get('hVYmCOi7M9').then(function(object) { ...
---Details----
I have a User (a7MTQFYXA9) belonging to a role (admins).
and object (hVYmCOi7M9) with ACL (r/w to admins role).
I have a cloud function (templateTest) that takes an objectId (in our test case hVYmCOi7M9) from ios SDK and retrieves this object, and returns a response of the task to be completed.
ROLE
ROLE USERS
OBJECT
OBJECT ACL
Note:
Not restricting the ACL of the object to the role and adding (public read) retrieves the object with no errors. So this may be an Role thing bug
Steps to reproduce
Please read the explanation above.
Expected Results
Object to be retrieved successfully.
Actual Outcome
Error object not found
Environment Setup
Server
Database
Logs/Trace
error: Failed running cloud function templateTest for user a7MTQFYXA9 with: Input: {"theObjectId":"hVYmCOi7M9"} Error: {"code":141,"message":{"code":101,"message":"Object not found."}}
The text was updated successfully, but these errors were encountered: