How to block rotation around local axes

Hi.
I’m making a fan and I want to allow it to spin only around the local y-axis. However, in the static mesh properties, I can block rotation relative to the world coordinate system, how can I do the same for local axes?