Closed (fixed)
Project:
Webform
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2010 at 12:54 UTC
Updated:
15 Apr 2010 at 18:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
andypostI think it's better check access in _validate()
Comment #2
andypostForget about global $user also $details should be filled with $submission->uid to not override when editing
Comment #3
andypostSame patch for 6-2 branch
Comment #4
quicksketchThanks, I've confirmed this problem in 3.x.
I don't think checking permissions is necessary, since we already checked permissions when the user was granted access to the form. Instead we can check variables from $form_state:
Though I found a problem with our "finished" variable, it's not populated correctly because we were checking a non-existent property when populating it.
Comment #5
andypostYes, no need to check permission. But I a bit confused by finished and draft states (never used them)
Also there's a problem with owner of submission in 3rd branch. Owner is changing to editor
Comment #6
quicksketchSure enough. We can roll that in with this patch, as you corrected it in #3.
Comment #7
quicksketchPhew, okay fixed in all branches. Patches attached that I committed to each branch. This is why 2.x support is coming to an abrupt end once 3.x reaches final. ;-)
Thanks for reporting this issue, it would've been a terrible nasty for anyone upgrading to 2.10 of Webform, which I'm hoping will be the last release in the 2.x cycle.
Comment #8
andypostThanx a lot for quick reply, I already found code-base very different for 2.9 and 6-2 branch which seems more like 3.0
I'm testing 3.0 branch but scare it's too early for production. WF3 still have no integration with Form Builder
Comment #9
quicksketchWebform 3 won't have Form Builder support for a long time. See #738994: Remove Form Builder Integration.