Only show own courses when adding classes

OSSC
Hello, First of, thank you for this great product. I have a use case where a teacher can create a class but is allowed only to add the courses he created. By default when creating a class all courses are shown. How can we restrict the select to only show the courses created by the current user. I know object type Class has an entity reference to Course (opigno_class_courses) but how can we enforce the owner restriction? Thanks in advance, Johnny
Profile picture for user James Aparicio
James Aparicio

Hi OSSC,

Hi OSSC,

If you edit the field you can see that you can create a custom view to filter that.

Under Entity selection -> Mode, you should have an option "Views: Filter by an entity reference". You can there select your custom view.

Thats one way of doing.

BR