Hi there!

Great component! However I'm trying to find a way to allow some users to access the results of an individual form.

The "access webform results" permission allows a particular group access to results all forms but (as an example) I only want to allow one user access to the results of one form and nothing else.

And ideas how I can achieve this?

Comments

gregolin’s picture

Hi.
I need the same... I would request this now... do you already know how to do???
Thanks.

jpeterson’s picture

Version: 6.x-2.1.3 » 6.x-2.6
Status: Active » Needs review
StatusFileSize
new6.73 KB

I needed this as well and decided to use CCK user reference fields to let webform editors control who could see the results and who could edit them on a per form basis.

This does not replace node or webform access controls, just creates another permit path. The code changes access control but at this point has only been lightly tested, use at your own risk.

Once the patch is applied, it requires one time setup:
1) Make sure you have CCK Content and CCK User Reference modules active (both part of the base CCK package)

2) Go here /admin/content/node-type/webform/fields and add CCK User Reference fields
"field_webform_access_results" and "field_webform_edit_submissions".
(You can just use one or the other, I am using both)
Label the fields however you would like, but the field names much match exactly.

3) Configure the just created CCK User Reference fields to accept an unlimited number of values, setup the rest of the CCK field options however you desire. I am using a custom view to to make selecting users easier, this is not required.

4) (optional) Exclude the newly minted CCK User reference fields from display

Now, when editing a webform there are options to select users who can access results and/or edit submissions. That user does not need to have "access webform results" or "edit webform submissions" in order to perform those actions on the form in which they are listed.

Kobax’s picture

Kobax’s picture

could you please upload the patched module(s) for those of us without access to a unix command line environment?

quicksketch’s picture

Category: support » feature
Status: Needs review » Closed (won't fix)

This functionality will not be added directly to the Webform module. I'd suggest making it a contribute module that adds on to Webform's existing functionality. If needing just the author of the node to have access to the results, this functionality has been added to the 3.x version as part of #246371: Adding new permissions for accessing own webform results and deleting webform submissions.

ikeigenwijs’s picture

Is this being done?
I also need to set permission per webform to certain users and not per rol.

kind regards,