I've added a webform, with all the appropriate components, and the form itself is working swimmingly.

I have a role called "management" to allow the site owners to update and edit content; and despite being granted the roles "edit own webforms" and "edit webforms", users in the management role cannot edit the form.

Many thanks for any clue. :)

Comments

rahulm’s picture

Hi,

I didnt get what exactly the issue is

just try to check the access controle "webform module" and set the permission here

jenna.tollerson’s picture

That is what I did. The misunderstanding may be because of a typo on my part:
'despite being granted the roles "edit own webforms" and "edit webforms"'
should be
'despite being granted the permissions "edit own webforms" and "edit webforms'

quicksketch’s picture

I'm not able to reproduce this problem. Creating a role with no permissions other than access content, create webforms, and edit own webforms, the user is able to successfully create and edit the webform. They are also able to edit other webforms if the "edit webforms" permission is granted.

A few questions:
- Are you using any sort of node-access module on your site? (Organic Groups, Taxonomy Access Control, etc)?
- Are you sure the form has been published? On the components page, there is a "Publish" button
- When creating a webform, can the user create a webform and successfully add components? When do they lose the ability to edit the webform?

jenna.tollerson’s picture

- Are you using any sort of node-access module on your site? (Organic Groups, Taxonomy Access Control, etc)?

Nope.

- Are you sure the form has been published? On the components page, there is a "Publish" button

That was one of the first things I checked out, after reading several instances of that exact problem, and it is definitely published.

- When creating a webform, can the user create a webform and successfully add components? When do they lose the ability to edit the webform?

The form I am having a problem with was originally created by user #1, but it's user #2 (joe), in the management role, that can't edit it.

Your question prompted me to create a simple form as joe, and I was able to create and publish this new form successfully. joe just can't edit the first (rather complicated) form, created as user #1.

Is it possible that joe can't edit the first form because the Input Format is set to PHP code, and joe can't use that Input Format? That didn't occur to me before but that would make the most sense.

I appreciate your taking the time to investigate this. :)

quicksketch’s picture

Is it possible that joe can't edit the first form because the Input Format is set to PHP code, and joe can't use that Input Format? That didn't occur to me before but that would make the most sense.

Yes! You hit the problem on the head. That's exactly it. Drupal will not allow a user to edit any node that uses an input format for which a user does not have access. It's not just PHP code, other input formats will do the same thing, the user has to have access to that input format in order to edit the node.

jenna.tollerson’s picture

Category: bug » support
Status: Active » Closed (fixed)

Ah-ha! Well, happy to know I can learn something new about Drupal. Thanks so much for helping me work this out. With you being so attentive, no wonder Webform is such a great module! :)

geerlingguy’s picture

Just an update (I'm using Webform for 6.x) - I had the same problem, but with Full HTML instead of PHP. Go figure.