bozoh / moodle-mod_simplecertificate

It's NOT RECOMMENDED to install version below 2.2.6 (MOODLE_31), due a security issues See more in README
17 stars 44 forks source link

If a certifcate is viewed from 'Issued certificate' screen, it changes on certificate to that of the viewer, rather than the recipient #263

Open davefoord opened 10 months ago

davefoord commented 10 months ago

Describe the bug I have noticed in the past that if I as admin use the log in as feature, and then access a users certificate, it changes the name on ther certificate to my name not the name of the recipient (and changes it permanently) - however I have just realised that if a tutor goes to the 'view issued certificates' tab within a certificate and views a certificate it does the same thing, which is obvioulsy not good.

Moodle Version(s) I have just updated the simple certificate plugin to 2.2.11 (2020091503) and we are using Moodle 4.1.3+ (Build: 20230427)

To Reproduce

  1. Steps to reproduce the behavior:
  2. Create a certificate that contains the wildcards {FIRSTNAME} {LASTNAME} in it somewhere
  3. Log in as a student and access that certificate - check it displays correctly
  4. Log in as a tutor and visit the 'issued certificates' tab and click on the link for that certificate - see if it displays the students name or the tutor name
  5. Log back in as the student and revist the certificate to see if it is still showing the wrong name
martaoliveirasi commented 9 months ago

Isso ocorre se o plugin filtercodes estiver ativo

reisdiegoss commented 7 months ago

Could you make the updated plugin available?