site admins receive cert mail if enrolled as student without meeting access requirements
So as described in the title site admins receive cert mails even when they have not meet the access requirements. This seems to happen regardless of whether the site admin was enrolled as student before or after the cert was created.
Obviously the option "Email students" has to be enabled.
I would imagine this also happens when "Email teachers" is enabled and the site admin is enrolled as one of the teacher or manager roles, but I haven't tested that situation.
Seems to be tangentially related to #360 and the issued linked in there.
Running v4.1.6 (2022112813)
This issue happens to us as well (we are on 4.1.7, 2022112814). The issue was reported to us after updating the plugin from 4.1.3 to 4.1.7.
Are you aware of the mod/customcert:receiveissue capability you can use to stop it being sending to roles you dont want it being sent to?
Also the versions mentioned are no longer supported. 4.4, 4.5 and 5.0 are the only ones supported now.