This PR supports anonymous surveys by ignoring the participants' table when configured as is. So now, if a survey is configured as anonymous, the user is not added to the participant table, and the token associated with the student is not generated. When configured as not anonymous survey, those things should happen.
How to test
Configure a survey as anonymous in LimeSurvey: Select your survey > Participant settings > Anonymized responses
Configure your xblock as containing anonymous surveys
Check your survey in the LMS, then the iframe URL should have only the limesurvey URL without a token
When configuring a survey as not anonymous, it should work just as before.
Description
This PR supports anonymous surveys by ignoring the participants' table when configured as is. So now, if a survey is configured as anonymous, the user is not added to the participant table, and the token associated with the student is not generated. When configured as not anonymous survey, those things should happen.
How to test