Controlling on the Base of the Guest Role

Last modified by Carina Enke on 19.01.2024

By using expert rules, you can influence visibility and access even of publicly accessible courses. To do this, use the expert rule isGuest.

Making individual content in a public course visible only to registered users

Do you wish to hide content in a public course from guests? Enter the following content in the text field next to Expert rule in the Visibility tab of the respective course element.

isGuest()=false

Kurseditor - Konfiguration nur registrierte Nutzer_de.png

After publishing, registered users and course owners will see this course element. Non-logged in guest users, however, do not.

View as a registered user

View as a guest user

View as a course owner

Kursrun - Ansicht registrierte Nutzer_de.png

Kurseditor - Konfiguration nicht für Gäste_de.png

Kursrun - Ansicht Kursverantwortlicher_de.png

Making individual content in a public course visible only to guests

Do you wish to display content in a public course exclusively to guests and course owners? Enter the following content in the text field next to Expert rule in the Visibility tab of the respective course element.

isGuest() or isCourseAdministrator() 

This will make the course element in a publicly accessible course visible only to guest users and course owners.

Kurseditor - Konfiguration nur Gäste und Kursverantwortliche_de.png

After publishing, registered users will not see this course element. Guest users and course owners, however, do will see it.

View as a registered user

View as a guest user

View as a course owner

Kursansicht - nicht für registrierte Nutzer_de.png

Kursrun - Ansicht nur Gäste_de.png

Kursrun - Ansicht Kursverantwortlicher_de.png