As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I have a collection that entities are created defining an acl write group. When using clean() method - http://devcenter.kinvey.com/backbone/guides/datastore#DeletingMultipleEntitiesatOnce - only entities owned by me are deleted, even if the group is defined as bellow:
{
"groups": {
"w": [
"5413083e463b59a55201179f"
]
},
"creator": "54776f375aee6ffe36011d15"
}
I have already double checked that the user that is trying to execute clean() action is in the group. That's not a possible cause.
How can other user remove entities not owned by him using access through 'w' group?
@cedin -- Did you find a way to accomplish this on your own? Do you still need help on this issue?
Damien Bell
said
over 8 years ago
Sorry about the delay Cedin,
Can you tell me a little bit more about how these users are grouped? How are you creating a group and adding users to it?
Thanks,
c
cedin
said
over 8 years ago
Yes, thats it!
Only one detail: only user2 (that issues delete) is in group1, not both user1 and user2.
Damien Bell
said
over 8 years ago
I wanted to follow up on this and ask a couple clarifying questions before I try to answer this.
Essentially, user1: creates an object, let's call it A, for the sake of argument.
User2 then creates objects B and C.
User1 and User 2 are in group "group1"
The ACL specifies that users in "group1" can edit A,B,And C.
When user2 issues a delete for A,B,and C, it is only able to delete A and B, but not C, no error is returned for when C is not deleted.
Am I understanding the issue correctly?
c
cedin
said
over 8 years ago
Hi Damien.
To delete a collection there are problems of credentials, because only master secret can delete a collection, right? But my request is a simple DELETE with a query, like
I've already tried to use Kinvey console and the behavior is exactly the same. There's no errors. It returns:
HTTP/1.1 200 SUCCESS
Tue Dec 09 2014 16:56:11 GMT-0200 (BRST)
{
"count": 2
}
But in this collection there were 3 entities that must be deleted, 2 created by the user that is executing DELETE request and 1 created by other user. All 3 entities _acl has 'w' group defined and the user that is executing DELETE request is in this group.
The problem is that even the entity is set to be editable by an user group it is not being edited by an user that is in this group.
Am I missing anything? Thanks.
Damien Bell
said
over 8 years ago
Cedin:
Can you go into the Kinvey console and try to issue an API call for the delete and let me know if that accomplishes what you're trying to do in this case?
cedin
{
"groups": {
"w": [
"5413083e463b59a55201179f"
]
},
"creator": "54776f375aee6ffe36011d15"
}
I have already double checked that the user that is trying to execute clean() action is in the group. That's not a possible cause.
How can other user remove entities not owned by him using access through 'w' group?
Thanks!