I have installed the quiz module in drupal 7 and I know that there is a permission to allow roles participate in all quizzes. I want that a specific role can participate in specific quiz, not in all quizzes, and other roles can participate in their own quizzes.

Is there anyway to accomplish this through the interface? If not, I would like to know how to solve it by coding.