I have a scenario with backendless which I cannot work out. Here is a simplified explanation.
Imagine that I have a table which contains a list of messages. The user creates their messages and the admin responds with their messages all tied together by a key. The problem I have is that if from a security perspective the user retrieves only messages their permitted to see based on owner, however, the messages from the admin are not retrieved because the owner is different.
In backendless how would I solve this problem because I don’t want to expose all other users messages to the outside world.
Appreciate any suggestions. I thought that I might be able to change the owner to the user once the admin posts their message but that appears to not be supported.
You should divide your users to groups. Each group should be a role. When admin checks a message, he grants object acl permission on the object for a group.
Thanks for the message. Is the term groups a backendless term/feature or a general term? Do you have documentation pointers? I’m an using REST.
When I say group I mean user role
Got it. But I am receiving an error. Please confirm this is correct:
I am calling the following endpoint:
Put request with a valid user token with the following body:
But i am getting a
Backendless encountered an error while handling the request.
Sergey. Sorry. I made a mistake. Just realised that in the url above it should read products and not product. All sorted thank you.