# HG changeset patch # User Lennard de Rijk # Date 1250011321 25200 # Node ID efbce6839e90acf97ebb66c295083847570cdd7a # Parent 11d510941d2fe765e6883bdc140c2d99e0b613a5 Project Survey results view now doesn't list all for plain users. diff -r 11d510941d2f -r efbce6839e90 app/soc/views/models/project_survey.py --- a/app/soc/views/models/project_survey.py Mon Aug 10 18:57:55 2009 -0700 +++ b/app/soc/views/models/project_survey.py Tue Aug 11 10:22:01 2009 -0700 @@ -303,6 +303,10 @@ # TODO: this might blow up if the user is org admin for too many orgs fields['org'] = organizations + if not student_entity and not org_admins: + # return only the surveys for the current user + fields['user'] = user_entity + return fields @decorators.merge_params