Feature summary (what you would like to be able to do and where):
It would be useful to show surveys only to people with specific user rights (e.g., admins or autoconfirmed users)
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
- We can target patrollers
- We can target administrators
Benefits (why should this be implemented?):
We can hear directly from the people our features are targeting.
Acceptance criteria
- Add audience option “groups”. It defaults to [ ‘*’ ] which every user should have. This ensures backwards compatibility
- If multiple groups are given in the survey audience definition the survey only if the user is a member of /all/ those groups.
- On the client mw.user.getGroups() is used to check if the user belongs to the groups given.