LDAP enrol autocreate hidden course

LDAP enrol autocreate hidden course

por joe vieira -
Número de respuestas: 1
Hi,

What I am attempting to accomplish is to have courses which get autocreated to be hidden (not available to users) We've set up a template course that is hidden, however it doesn't seem to propagate those settings over...ideas?

Thanks,

Joe
Promedio de valuaciones (ratings): -
En respuesta a joe vieira

Re: LDAP enrol autocreate hidden course

por Iñaki Arenaza -
Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers

The current code just copies the most basic settings from the template course, which doesn't include the visibility setting. If you want to copy that setting from the template, edit create_course() in .../enrol/ldap/enrol.php and search for the line that reads:

$course->visible = 1;

and comment it out. That should do it.

Saludos. Iñaki.