Awesome article! I think that there should be a return user. email in promise chain rule #2.c in the first .then() after checking if "hr" is in permissions. This is for properly passing down the user email in the case that "hr" is NOT in the permissions, I believe!
Great article anyways! I love working through your examples - hopefully I can learn promises and async programming so that I can move on to finally learn reactjs!
I like to help people feel comfortable with being themselves and writing what they actually want.