Closed (fixed)
Project:
Webform
Version:
7.x-3.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 May 2011 at 13:27 UTC
Updated:
27 May 2011 at 02:51 UTC
Jump to comment: Most recent file
Hi,
We've created a webform on our site and want to give anonymous users access to see submissions.
(Anonymous users can submit the form)
When we enable anonymous users to "Access all webform results" the form does not load and generates an error. As soon as we disable this permission it works out fine.
We also looked at the webform issue queue for this but no one else has reported this problem.
Anyone has any ideas?
Thank you
Tejas Mehta
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform_submission_count_anon-d7.patch | 628 bytes | quicksketch |
| #1 | webform.submissions.inc_.patch | 525 bytes | tejaspmehta |
| error.jpg | 123.05 KB | tejaspmehta |
Comments
Comment #1
tejaspmehta commentedHello,
I have figured out that PDOError for anonymous user was coming due to condition provided for anonymous user.
I have created basic patch.
I have tested this for superuser, authenticated user and anonymous user. It worked fine. Please review this.
Thank you
Tejas Mehta
Comment #2
quicksketchThis patch would allow all anonymous users with "view own webform submissions" to see the submissions of all other anonymous users (which is not intended behavior). The submission count should return no results for an anonymous user that has not made any submissions, this would actually make it so that anonymous users all "shared" the same submission count.
In any case, thanks for finding this bug. I've corrected it with the attached patch which returns no results if the user has not yet made any submissions.
Comment #3
quicksketchUpdating title to reflect the problem being solved.