Closed (fixed)
Project:
Webform
Version:
6.x-2.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2008 at 17:47 UTC
Updated:
28 Apr 2010 at 21:20 UTC
Jump to comment: Most recent file
If a user has permission to view (or edit) own submissions, hidden form components are shown (and can be edited).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | hidden-components.patch | 1.11 KB | SeanA |
Comments
Comment #1
SeanA commentedHidden fields are displayed if a user with "access own webform submissions" permission views a previous submission. The (un)hidden components cannot actually be edited, I was wrong about that.
Here's a patch that should fix the problem.
Comment #2
quicksketchLooks great thanks! Committed.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
johnpitcairn commentedHmm ... I'm seeing this issue right now in 6.x-2.9, if any user has permission to "access webform results". Created (not webform-generated) hidden fields are visible.
Any suggestions?
Comment #5
johnpitcairn commentedoops ... forgot to set to "active".
Comment #6
quicksketchWhat you've described is correct behavior. If you look at the patch above, you'll see that's actually exactly what we implemented (and what's still in version 2.9):
The "access webform results" is an administrative permission. If you want users to be able to view and edit their own submissions (and not see the hidden fields), give them the "access own webform submissions" permission.
Comment #7
johnpitcairn commentedOK I see, thanks. I want the admins to be able to view all submissions, but not see the (many) hidden fields, it'll just annoy/confuse them - we use those to calculate a total based on other conditions, but we do need them in there so admins can change the multiple possible values of each line item via the webform UI. I'll hide 'em with css.