What is a grandfather clause?

It said if your grandfather could vote, so could you.