-added a few methods to questionnaire_instance model for checking
permissions