Note: This documentation is for Moodle 2.7. For up-to-date documentation see Capabilities/moodle/course:visibility.