Short answer: minor hardware issues (loose hinges, worn seals, sticky tracks) are reasonable DIY fixes. Cracked or broken glass itself is not — that's a job for a professional, both for safety and to avoid a bigger repair later.
Safe to DIY
Replacing a worn door seal, tightening hinges, cleaning and lubricating a sliding track, and minor hardware swaps are all reasonable for a confident homeowner.
Call a professional
Any actual crack or chip in the glass, especially tempered glass, since a compromised pane can fail suddenly and completely without warning. This isn't a risk worth taking to save a small amount of money.