Well, when the offender is a former politician.
A relatively junior public servant, Michaela Banerji, was sacked from the APS for expressing negative views about current policy on asylum seekers, yet public servant Jon Stanhope appears to be allowed complete freedom to express similar views (the journalist disguised the comments as referring to “ALP” policy, but Stanhope is clearly referring to the present day).