This may be true but if you don't have medical clearance to be at work they do not have a choice if you were to work out your notice whilst providing a medical certificate saying you shouldn't be at work, then they would be liable for anything happening to you. I guarantee they won't want that risk