I don't understand; are you planning to use the user_id for something in this context, or are you only using its presence to tell you what context you're running in?

I think the latter, but I think the comment could be slightly clearer. 

Otherwise, lgtm.