Yosef Karo, Translation:Shulchan Aruch — 334
“ But if before he's outcast he spoke to appease the rav and he disregarded him and outcast him, he's not outcast at all to his students, and as soon as he says he'll repair what he's done wrong according to what chakhamim tell him, there's no nidui on him (MHRYK shoresh 169) . A community who ordained that a man may not cast [people] out for his honor, their takanah [ordinance] has no bearing. So if the rav stands and outcasts for his honor his nidui is nidui. (Resp. Rashba #169) סעיף יח רב מצד המלכות ואינו רב בתורה אינו יכול לנדות לכבודו. ”
