Hi! I upgraded my webform module (I used 5.x-1.7). Since then when I create a new form or if I edit and save an old one, the form accessiis denyed to all but the admin role. I cheked on drupals forums :
http://drupal.org/node/226987
I have never installed node access and I saw this problem on other sites. I think the new version has a little bug because for now I came back with my previous version of webform and it works...
Please check the new version because I really like webform (and the new version is much more handy!)
Thanks
Bee

CommentFileSizeAuthor
#9 patch.patch5.06 KBbwynants
#7 patch.patch5.06 KBbwynants
#6 patch.patch3.47 KBbwynants

Comments

quicksketch’s picture

Make sure you publish the Webform node (it's unpublished by Default).

quicksketch’s picture

Status: Active » Closed (fixed)

Closing after lack of response. I'm assuming it's the lack of publishing that's the problem.

ideashalini’s picture

Version: 5.x-2.0 » 6.x-2.0-beta3
Status: Closed (fixed) » Active

I created a webform but when I try to add components like email, textfield or date, I am taken to a page that says the access is denied. I am the administrator. The email module is 6.x-1.1, date is 6.x-2.0-rc4. I have published the form too.

advseb’s picture

Not sure, but the problem might be that the "edit" page of a webform tends to forget certain values. This is the case if you change a value and click "Preview" instead of "Save". After preview, many settings are set back to their default values.

bwynants’s picture

same problems here....

adding

    'access callback' => 'node_access',
    'access arguments' => array('update', 1),

to the menu's seems to help

  // Node component forms.
  $items['node/%webform_menu/edit/components/%webform_menu_component'] = array(
    'page arguments' => array('webform_component_edit_form', 1, 4),
    'access callback' => 'node_access',
    'access arguments' => array('update', 1),
    'type' => MENU_LOCAL_TASK,
  );
  $items['node/%webform_menu/edit/components/%webform_menu_component/clone'] = array(
    'page arguments' => array('webform_component_edit_form', 1, 4, TRUE),
    'access callback' => 'node_access',
    'access arguments' => array('update', 1),
    'type' => MENU_LOCAL_TASK,
  );
  $items['node/%webform_menu/edit/components/%webform_menu_component/delete'] = array(
    'page arguments' => array('webform_component_delete_form', 1, 4),
    'access callback' => 'node_access',
    'access arguments' => array('update', 1),
    'type' => MENU_LOCAL_TASK,
  );
bwynants’s picture

Status: Active » Needs review
StatusFileSize
new3.47 KB

more instances found patch enclosed

bwynants’s picture

StatusFileSize
new5.06 KB

More complete patch, looks like some form changes and file includes where not handled correctly

quicksketch’s picture

Status: Needs review » Needs work

This patch doesn't seem to apply to the latest DRUPAL-6 branch. Could you reroll?

bwynants’s picture

Status: Needs work » Needs review
StatusFileSize
new5.06 KB

created patch again

quicksketch’s picture

Status: Needs review » Needs work

You're creating patches against HEAD, not the DRUPAL-6 branch. There have been some many changes to Webform since the code was branched and so these patches do not apply. Could you roll against the Drupal 6 branch?

quicksketch’s picture

Status: Needs work » Fixed

I'm assuming bwynants was running out of HEAD instead of the DRUPAL-6--2 branch. All the corrections made in his patch were fixed in #245013: 6.2 Breaks Webform Permissions or other patches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.