Closed (fixed)
Project:
Webform
Version:
8.x-5.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Sep 2017 at 04:12 UTC
Updated:
29 Sep 2017 at 22:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jrockowitz commentedRight now, there is no way to use client-side storage to track and convert anonymous submissions.
Still, 'anonymous submissions' should only be tracked when a user can 'view own webform submissions'.
The most immediate solution is to check for 'view own submission' in WebformSubmissionStorage:: setAnonymousSubmission.
Comment #3
jrockowitz commentedThe Webform module for D7 checks if the current user can 'access own webform submissions'.
@see http://cgit.drupalcode.org/webform/tree/webform.module?h=7.x-4.x#n3411
Comment #4
jrockowitz commentedThe attached patch checks if the current user can 'access own webform submissions'.
I am willing to bet the attached untested patch breaks a test or two.
We probably need to add a warning to 'Convert anonymous user drafts and submissions to authenticated user.' that says anonymous users must be able to access their own webform submissions.
Comment #7
jrockowitz commentedComment #10
jrockowitz commentedComment #11
jrockowitz commentedComment #13
jrockowitz commentedI committed the patch. Please download the latest dev release to review.
Comment #14
jrockowitz commentedThis issue has caused this regression #2908808: Impossible to limit the number of submission by user. I am most likely going to revert the commit and approach the problem with a different solution.