Am I too old to get a mortgage?!

I’m in my 50s. While I have a good Kiwisaver and inheritance, and my midterm financial position is strong, I’ve never owned a home. A friend was telling me that banks may not lend to people my age because in theory I only have another 10 salary-earning years left. I’m guessing it’s up to the individual lender, but does this sound right? Even if I only want to borrow a couple of hundred thousand, I just won’t be able to? Thanks in advance. 👍 Edit: grammar