Hiding courses based on login info

Re: Hiding courses based on login info

by Martin Dougiamas -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Until something more official gets implemented, you just need to hack your config.php with something like this. (No need to change any other file)

If you take manual control over the enrollments then another tricky thing you can do with existing code is this:  have all the courses visible, but inside an invisible category.  The category will not be shown anywhere to students or guests, but once users log in then all their OWN courses are shown on the front page as "My courses".