equal
deleted
inserted
replaced
301 organizations.append(org_admin.scope) |
301 organizations.append(org_admin.scope) |
302 |
302 |
303 # TODO: this might blow up if the user is org admin for too many orgs |
303 # TODO: this might blow up if the user is org admin for too many orgs |
304 fields['org'] = organizations |
304 fields['org'] = organizations |
305 |
305 |
|
306 if not student_entity and not org_admins: |
|
307 # return only the surveys for the current user |
|
308 fields['user'] = user_entity |
|
309 |
306 return fields |
310 return fields |
307 |
311 |
308 @decorators.merge_params |
312 @decorators.merge_params |
309 @decorators.check_access |
313 @decorators.check_access |
310 def sendReminder(self, request, access_type, page_name=None, |
314 def sendReminder(self, request, access_type, page_name=None, |