Airsupport, Aussie registered 717 MEL allows dispatch, for 10 days if memory serves, with various parts of the Flt Deck door locking mechanism (normally controlled electronically) u/s. BUT the door must be lockable in flight.
Ahh for the good ole open door policy of days of yore.