MDL-54751 course: Set adhoc task user
We should complete the deletion process using the same user that started it. Added a new param to loginas() to prevent the event to be generated as there is no need to generate an new event for that as the user didn't explicitly loginas again.
Please register or sign in to comment