Military law punished only soldiers, not officers, with public beating

Evidence

The answer to all these questions is β€œno.” The way the army functioned as an institution could not have allowed the soldiers to think of it in a proud manner. Not only were they badly treated by their officers, but they also soon realized that even in law they were discriminated against. Ibrahim might have been against the degrading treatment of the soldiers by their officers, but he was even stricter about the principle that no officers were to be punished by being beaten in front of the men: only soldiers were to be punished that way. β€” Khaled Fahmy, All the Pasha_s Men_ Mehmed Ali, his…, 1339