Restrict access settings
From MoodleDocs
The Restrict access area becomes visible in Moodle activities and resource settings if Conditional_activities have been enabled. Clicking the button Add restriction displays options for the teacher to restrict access to activities or sections according to date, grade, group, user profile field or a combination. For more detailed information, see Conditional activities settings.