I'm looking for ways to delegate access to the results from one form to certain roles, in the same way you select which role can submit the form.
Is this possible??

Thx.

Comments

quicksketch’s picture

Status: Needs work » Active

This is possible but outside of the scope of the Webform project. The Webform module provides access control hooks to the results pages that other modules can use to grant or deny access based on any criteria (including user roles, like you want). A good example of this approach is demonstrated by the OG Webform module which makes it so that administrators of an organic group (provided by the OG module) all have access to view the results of nodes that are created within their groups. I'd suggest taking a look at it for reference and possibly creating a similar add-on module that uses the same sort of mechanisms for granting access to results by role.

diaxpro’s picture

Hi, ok thanks for your answers.
I'll look to see what I can do, if anyone needs the same could be making progress here, thanks.

diaxpro’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new3.47 KB
new2.44 KB
new1.23 KB

Hi, I finally modified the module so that the configuration of the webform as select which roles can send the webform you can select which roles can access the results. For me it is very useful because there is someone to create the webform while interested in seeing the results, is in charge of the department to which it is made form.

Here I leave the patch with the changes I made in case someone else needs it, a greeting.

quicksketch’s picture

Status: Patch (to be ported) » Closed (fixed)

Thanks for your patch, but there's no way this could possibly be integrated in the Webform module. I'd discourage any other users from applying these patches, as they won't ever be integrated directly into the Webform module. I'd instead encourage investigating an add-on module solution. I'm marking this issue closed as I don't want users to modify the module directly.