Carmen Martinez was forced out of a $140,000-a-year city job for ­violating the rules, but that hasn’t stopped a state Assembly candidate in Brooklyn from hiring her as campaign manager.

Martinez, a longtime ally and former campaign treasurer for disgraced former Brooklyn Democratic boss Clarence Norman Jr., was forced to retire last year from a cushy job as the city comptroller’s head of community affairs after getting caught doing personal work on the city clock — for 14 years.

Now she’s the campaign chief for Democrat Pam Harris, a politically connected Coney Island activist and retired city correction officer who is the heavy favorite in a November special election to fill the 46th District Assembly seat left vacant by the July resignation of Alec Brook-Krasny.

Harris declined to say why she hired Martinez, telling a reporter to “have a nice day” and speak to Martinez directly before hanging up the phone.