They are allowed, if disclosed. It doesn’t look like they were disclosed on this article.

You must disclose affiliate links or payment for a post. Affiliate links, such as link out to Amazon with your code, or any other link out where you will receive a commission or other value, are allowed in posts. But, you must disclose somewhere in the post that it includes affiliate links. If you have received payment, goods or services, or something else of value in exchange for writing a post, you must still disclose this fact in writing within your post (as per FTC Rules and Guides).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store