Reputation: 5308
When calling one of my own Cloud Code functions, is there a parameter added by default, that represents the calling user or do I just have to add that myself? I wasn't able to find anything on this in the documentation.
Thanks!
Upvotes: 1
Views: 19
Reputation: 119031
The logged in user who made the request to your cloud code is in request.user
, assuming that you're using one of the supplied SDKs or that you set the appropriate details when you use the RESTful interface.
Upvotes: 2