... or nobody can edit actually.

Hi,

I am having very strange issue with my webforms.

Even if I log in as user #1, I cannot edit webform nodes.
I can view, submit, edit webform components, view results, but cannot edit the nodes.

The edit tab is not displayed on webforms anymore. If I type the the edit URL, like http://example.com/node/174/edit, I would get Drupal's "Access denied - You are not authorized to access this page." error page.

I checked the node access with Devel, user #1 suppose to have all the access. Please, see the screen shots.

I suspected, Workflow module and/or its related modules may effected the webforms in a way; even though the webforms are not part of any workflow.

Here is the current setup, if would help:

Drupal core 6.19
Internationalization 6.x-1.7
Module Grants 6.x-3.6
Revisioning 6.x-3.11
Translation Access 6.x-1.0-beta1
Webform 6.x-3.6
Workflow 6.x-1.5

Multilanguage setup. Each content-type is set to have a language. Language Neutral is not allowed. Each content-type is in the workflow, except webforms.
Workflow, is configured to work with Module Grants and Revisioning modules.

Having multilanguage environment, language based access, and workflow has not been a problem. Webforms have been always excluded from workflow and the language is a mandatory field. So I can say webforms are kept out of the confusion completely.

And here is the good part; they were working before. At least until end of 2010, when we delivered the site to client. They say they didn't touch anything. Even though something has changed, and made webforms functioning incomplete, I don't believe they broke it, at least not intentionally.

(I think) I checked every possible settings. All the related issues I could find. Nada nothing. Seems like most people have similar issues but the other way around. They can edit the node but not the webform components. In my case, I can edit webform components but not the node itself.

Help! Any ideas please?

Comments

osman’s picture

p.s. I forgot to mention. All the screenshots are taken from user #1 account, except one. Which is taken from phpmyadmin for node_access table.

quicksketch’s picture

This question probably has nothing to do with Webform; it seems like an access control problem. Webform doesn't do any modifications at all to the "Edit" tab or affect permissions to it in any way. Try disabling various access modules (like Translation Access) until the problem goes away, then ask the question in that queue.

osman’s picture

Thanks quicksketch,

I guess you are right about Translation Access. I found this issue #993242: User 1 cant edit nodes.

I also checked the menu_router table. Translation Access, altered node/%/edit path's callback functions. The solution seems to be patching i18n_access.

Thanks again.

osman’s picture

Project: Webform » Translation Access
Version: 6.x-3.6 » 6.x-1.0-beta1
toemaz’s picture

Status: Active » Closed (duplicate)
toemaz’s picture

Status: Closed (duplicate) » Active

@osman can you share your patch?

mdorrell’s picture

I had a similar problem, and tracked it down to a conflict between the revisioning module and the i18n_access module. It looks like Revisioning adds another $op to the node_access function that it doesn't recognize. I managed to remedy this by adding this line in a hook_menu_alter in a module that runs after both of these

$items['node/%node/edit']['access arguments']= array('update', 1);

I will be awaiting a patch for this module, but for now this is working for me. If anyone else has this problem, try this solution.

osman’s picture

@toemaz, project's scope changed shortly after I posted this issue. I didn't work on any patch afterwards.

yang_yi_cn’s picture

regarding #7

now I'm committed some revision related patch at #1163104: Incompatible with revisioning module, could it be related? Can anyone confirm? I don't have webform enabled on my site right now.