Military members are not allowed to be at political events while in uniform or representing the military in any way.
You are 100% correct.
What is sad, though,is snowflakes, attempting to spin anything and everything into an attack on the President and anyone who supports him. Case in point, snowflakes are trying to claim that the Commander And Chief of the Armed Forces visiting his troops during Christmas is somehow a
'political event'.
Perhaps if Barak Obama or Hillary Clinton visited the troops it would be for political gain, as neither one ever gave a damn about our troops. Hillary even lied about visiting our troops UNDER fire for political gain - to make herself out to be some kind of hero.
Commanders and Chiefs are allowed to visit the troops and the troops are allowed to show their appreciation and support for their Commander And Chief and President.
Bitter, butt-hurt, Trump-hating, hate-driven snowflakes live a completely miserable existence, LIVING every day, every moment, for something - anything - with which to attack the President.