Consider I’m using a custom Hosted Script with a function to let the user retrieve a newsfeed.
i.e.:
public List<FeedObjects> getFeed(){
return Backendless.Data.of(Newsobject.class)
}
Of course there is a Relation between UserObjects and FeedObjects.
Generalized, I need to filter the Newsobjects by UserObject with a simple SQL Statement.
Is there a possibility to get the BackendlessUser who is executing the getFeed() method inside the Hosted API Service code? (without sending a UserObject from the client)
The User is of course logged in.
I consider there might be a way to accomplish this because there are also possibilities to restrict API calls to certain users or user roles.