A have an iOS app where a user (anonymous at first, as I am using enableAutomaticUser) calls signUpInBackgroundWithBlock which returns succeeded = YES. The new, now non-anonymous user creates an object and afterSave() is called in cloud code.
If I inspect request.user in afterSave() it shows that user is NULL, but the object is saved without error and its createdBy is also set correctly to the new user.
According to the docs, request.user should only be NULL if the user is not logged in. Does anyone have any idea why it would be NULL following a successful signup? Is this a bug?