Right now surveys are shown to everyone. It would be useful to target a survey to logged in users or anonymous.
Acceptance criteria
- If anons is set to true in the audience definition only anonymous user should see the survey
- If anons is set to false, only logged in users see the survey
- IF anons is omitted then the survey is shown to both anons and logged in users
- If I set anons to true but also define minEdits and maxEdits, then it is impossible for anyone to see the survey as someone cannot be anonymous AND have an edit count.
Developer notes
Given the work in T139317 we could expand audience to accept a property like so:
"audience" => [ 'anons' => true ]