Your example has nothing to do with academic freedom whatsoever.
And now for a case of real infringement of academic freedom:
https://quillette.com/2018/09/07/academic-activists-send-a-p...
I think we'll probably all agree that the juice isn't really worth the squeeze here, though.