-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Clients aren't allowed to perform the create operation on the role collection. (Code: 119, Version: 1.12.0) #1671
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
Did you check your class level permissions? |
Request you to please more explain about class level permission. What I need to change in schema |
hi @hramos here is my class level permission (From MongoDB )for the Role- {
"_id": "_Role",
"_metadata": {
"class_permissions": {
"get": {
"*": true
},
"find": {
"*": true
},
"update": {
"*": true
},
"create": {
"*": true
},
"delete": {
"*": true
},
"addField": {
"*": true
},
"readUserFields": [],
"writeUserFields": []
}
},
"role": "string",
"roles": "relation<_Role>",
"users": "relation<_User>",
"name": "string",
"organizationId": "string"
} And from my iOS application I am trying to add the role like below: PFACL *roleACL = [PFACL ACL];
[roleACL setPublicReadAccess:YES];
[roleACL setPublicWriteAccess:YES];
PFRole *roleAdmin = [PFRole roleWithName:roleNameAdmin acl:roleACL];
[roleAdmin.users addObject:currentUser];
[roleAdmin setValue:@"admin" forKey:@"role"];
[roleAdmin setValue:orgId forKey:@"organizationId"]; will you please guide me what I am doing wring at Class level Permission. |
Hi @hramos Any guess ?? |
+1 |
Oh here it is https://github.com/ParsePlatform/parse-server/blob/d33dd68cc521e63be68a93ab1a00cfdb7a7d243d/src/rest.js#L118 What is the point of |
Oh wait I think I don't have the latest version... this was actually removed here dd7fad8#diff-62e69722264e5a578707565ff5fcf41c |
We have the same issue. Application gets:
|
@drorsun Update your parse-server version. |
@xissburg I am on version 2.2.7 which is the latest |
I am having the same issue as @drorsun and am also on v2.2.7. |
Check what your have in |
@xissburg the function is: // Disallowing access to the _Role collection except by master key |
Guys, I updated my Parse-Server version and also the latest iOS SDK. |
Hello Team,
I am struggling with an issue which is related with PFRole Parse SDK Ver 1.12.0.
I have a parse app running on Parse server with iOS SDK 1.7.5 on PRODUCTION and in that app we are creating role from iOS app directly using PFRole, which is working fine.
But after migrating my Parse cloud app to Amazon + Mango DB and changed the Client iOS SDK to 1.12.0, I am getting issue and unable to create the PFRole.
The same code was working properly with iOS SDK 1.7.5. Will you please help me out to fix this issue
The text was updated successfully, but these errors were encountered: