Posted by cdale on November 28, 2008 at 1:26am
3 followers
| Project: | Webform |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
At the moment, webform allows any user with the 'access webform results' permission to view the results for any form, even if they do not have view (or update) access to that form. The webform-results paths, and the admin/content/webform pages should obey node access restrictions.
Comments
#1
This patch corrects this issue.
The patch makes it so the user must also have view access on the node to access the results. i.e. the user must have both view access on the node and the 'access webform results' permission to be able to view results for a node.
NB: A menu rebuild will be required for the patch to take effect.
#2
Thanks, I ported it to Drupal 5 and added a bit of PHPdoc for the new webform_results_access(). Great patch!
#3
Oops, forgot the db_rewrite_sql() in the D5 version. Added here.
#4
Automatically closed -- issue fixed for two weeks with no activity.