def get_forms_for_user(user):
 editable_forms = UserPagePermissionsProxy(user).editable_pages()
 editable_forms = editable_forms.filter(content_type__in=get_form_types())
 for fn in hooks.get_hooks(u'filter_form_submissions_for_user'):
  editable_forms = fn(user, editable_forms)
 return editable_forms

def get_forms_for_user ( user ) : editable_forms = UserPagePermissionsProxy ( user ) . editable_pages ( ) editable_forms = editable_forms . filter ( content_type__in = get_form_types ( ) ) for fn in hooks . get_hooks ( u'filter_form_submissions_for_user' ) : editable_forms = fn ( user , editable_forms ) return editable_forms
return a queryset of form pages that this user is allowed to access the submissions for .