Teacher name element

Teacher name element

Na Nder - દ્વારા
Number of replies: 1

Hi,

I am an administrator and I am using the new plugin. I want to create certificates where one of the elements is "Teacher name". I also don't want teachers to be able to edit certificates in this particular course.

The "Teacher name" element works well until I remove the permission "Manage a custom certificate" (mod/customcert:manage) for a teacher.

When I do this, I can no longer choose teachers in the element dropdown settings for "Teacher".

How can I make this work?

In reply to Na Nder

Re: Teacher name element

Mark Nelson - દ્વારા
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Looking at https://github.com/mdjnelson/moodle-mod_customcert/blob/MOODLE_38_STABLE/element/teachername/classes/element.php#L102 I can see why this is happening. It determines who is a teacher by checking that permission. Do you have a better suggestion? Cheers!