Sick leave does not prevent dismissal, but the employer must show a fair reason, take up to date medical advice, consult you and consider reasonable adjustments where your condition is a disability.