What reason or law makes this illegal or legal?

Answer:
I think that this should be legal but this is truly the manager's fault. He or she should have looked into it. He/she can't just trust what anyone says and fires the person. The manager should have checked if there was evidence behind the complaint and then decide whether he/she should fire the person or not.