Inscrit le: 03 Oct 2017
| Posté le: Lun 20 Nov - 09:22 (2017) Sujet du message: Detect if an event is triggered by a webservice ?
I am developping a custom local plugin which listen to the \core\event\user_enrolment_created event.
I need to find a solution to detect if an enrolment is created by a webservice or manually.
The user are enrolled by a Wordpress plugin (EdwiserBridge) into Moodle courses.
Do you have any ideads ?
My only other option is to detect if a user is enrolled in a particular course.
But this course need to be hidden.
I didn't find the right solution from the Internet.
Product Sales Videos