After setting up CLP on class Article
like the following:
here is how it looks like when I hit the schema endpoint:
{
"className": "Article",
"fields": {
"objectId": {
"type": "String"
},
"createdAt": {
"type": "Date"
},
"updatedAt": {
"type": "Date"
},
"ACL": {
"type": "ACL"
},
"title": {
"type": "String"
},
"url": {
"type": "String"
},
"votes": {
"type": "Array"
},
"submittedBy": {
"type": "Pointer",
"targetClass": "_User"
}
},
"classLevelPermissions": {
"find": {
"*": true
},
"count": {
"*": true
},
"get": {
"*": true
},
"create": {
"role:Contributor": true
},
"update": {},
"delete": {},
"addField": {},
"protectedFields": {}
},
"indexes": {
"_id_": {
"_id": 1
}
}
}
I am getting Permission denied for action create on class Article.
error while trying to create a new object in that class with the user who has the Contributor
role.
I am not sure what I am doing wrong?