Unfortunately, if you did not have an unexpired written employment contract which in one way or another prevented you from being fired for this reason, you were an employee at will. An employee at will has essentially no rights at work or to his/her job, so they may be fired at any time, for reason--including being away from the desk/counter for what the employer thought was too long a time.