A court in Uganda has reinstated Stella Nyanzi as a research fellow at Makerere University after she was suspended two years ago.
Dr Nyanzi, who is known for her anti-government protests, will also be paid 120m Ugandan shillings ($32,000; £25,000) as compensation by the institution.
She once stripped naked outside her university office after she was locked out.
Dr Nyanzi had accused the university administration of various ills.
She was later suspended and proceeded to court.
Dr Nyanzi said the battle had been won.
"I am looking forward to going back to my office, getting all my unpaid salaries, and getting promoted to the position of Senior Research Fellow. I lost at least eight years of promotion because of these protracted violations," she wrote on her Facebook page on Friday.
High court orders Makerere to reinstate Stella Nyanzi as research fellow, pay her Shs 120m compensation. The university was also ordered to immediately promote her to senior research fellow and pay her all her 2-year salary emoluments https://t.co/71KSfjLlNz pic.twitter.com/SeDiiiHktm
— The Observer (@observerug) June 12, 2020