-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Parse query returns: Permission Denied for this Action Android #337
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
Ok so I solved this. If you are using Mongo DB, and didn't migrate your data from parse, the classes in _SCHEMA may be missing the the proper permissions in class_permissions. Open the User Class (or any class you want to CRUD) in _SCHEMA and add the code below to it. Adjust the comma at the end as needed. Hope this helps! |
Hey @aaadesignstudios |
@aaadesignstudios this actually sounds like a bug, so I'm going to re-open this. Can you tell what class you saw this issue for, how you created that class (dashboard, client, etc...) and if possibly, what the contents of the _SCHEMA collection were before you modified it? |
@aaadesignstudios |
Before deleting, can you copy your _SCHEMA collection and paste it here, and also describe how you are creating the schema? |
The _schema collection is created automatically when migrating from Parse or when user logged in. |
This is the schema collection { |
I'm confused now, there are too many people in this thread with the slightly different issues, some oh whom have solved their issue and some of whom haven't. If you are still having problems, can you open a new issue with how you are creating your collection, how you are accessing it, and what it looks like in the database? |
Hi, is there a way to add those permissions automatically? "metadata": { "class_permissions": { "get": { "": true }, "find": { "": true }, "update": { "": true }, "create": { "": true }, "delete": { "": true }, "addField": { "": true }, "readUserFields": [], "writeUserFields": [] } },_ I create an schema through the iOS SDK but they are not added (_SCHEMA class updated succesfully). Thank you |
For some reason everytime I call a Parse Query I get denied. I was working on app last night and everything was fine. This morning I keep getting the error. I am using AWS to host and MongoDB. Also I'm working on Android. Any help would be great. This is my code:
`if (ParseUser.getCurrentUser() != null){
new Thread(new Runnable() {
@OverRide
public void run() {
Log.e(TAG, "Finding Users");
and this is my error:
02-10 10:23:55.948 31981-32158/com.antonioallen.app E/CommunityFragment: Finding Users 02-10 10:23:56.048 31981-31981/com.antonioallen.app E/ERROR FIND USERS: Permission denied for this action. Permission denied for this action. 101
The text was updated successfully, but these errors were encountered: