fix comm email API authorization (bug 896044 + 902646)

This is a post merge fix for bug 896044.