Displaying results by user

I noticed in the support forums that you were talking about displaying results by user (https://wordpress.org/support/topic/results-for-each-user). On the site where I'm using the plugin I was asked to display survey results publicly, which meant displaying them per user and being able to set them as public or hidden. I've taken out the public/hidden bit (which is a bit of a specific usage case I think) leaving just the option to display results by user. And only if the survey is using auth='login'.

I don't know if you've already done work on this, or envisaged it working a different way, but I thought I'd share my code in case it was in any way useful. Let me know your thoughts though.

Thanks again for the plugin.