Right now the list_survey API lists the surveys that are owned by a specific user, or all. This makes it difficult to work with complex security structures. It would save a lot of coding if we can have a feature that lists the surveys that the user has rights to.
The question then arrises of course what permissions this should be based on.
This could either be fixed permissions (i.e. being able to read the token table) but better specific permissions.
So we could list all surveys that:
belong to user: PeterR
Permission category: Responses
Permission level: view/read
This would list all surveys that user PeterR has view/read rights to the responses.