My situation is as follows:

  • i have a node type that only role "a" is able to modify (regardless of who has created the node). Other roles "b,c..." should just have read access on it. This is easy to setup with the taxonomy access module.
  • i have a view that shows an editable field of this node type. I want the "a" role to be able to modify it, and roles "b,c..." to be able to see it only.
  • as for now, this is impossible: editablefields says "enable CCK if you wish to edit fields" and does not display the value of field when a user of role b or c accesses to the view.

I guess that a simple patch to achieve what i want would be to replace drupal_set_message("enable CCK if you wish to edit fields"); on line 262 by a call to a theme function that returns the value of the field. I have no idea of how i could do that though.

Any tip ?
Thanks for the great module.

Comments

markfoodyburton’s picture

I think the latest version fixes this - or 1/2 fixes it, let me know if it works for you....

hanno’s picture

I had the same problem, it seems to work for me now. thnx!

ricflomag’s picture

I don't get the error message anymore, but the value is not printed either. Looking at the code, the reason is obvious: on line 242, the if (node_access("update",$node)) { condition now leads to no action at all (lines 274-276) when the user does not have update access to the node.

I tried to copy and paste the code that should display the value (lines 261-272) to the "else" section of the condition, but $info['form_parents'] is empty, so nothing is displayed.

I'm not familiar with cck code nor with views, i'm a bit stuck...

johnv’s picture

Status: Active » Closed (fixed)

Cleaning up issue queue: D5.x no longer supported, and issue works in D7