views:

50

answers:

1

In Drupal I am trying to create a content node where the original author can upload an image and then 'challenge' another user to upload an image into that node as well. I can already grant the 2nd user access rights through CCK > User Reference > Node Access User Reference but I don't want that new user to be able to edit the whole node, only 1 imageFile field. Is there any way to do this Grant Per User Field Access User Reference?

A: 

Try http://drupal.org/project/field_permissions (in addition to what you have done above)

Using above module, deny edit access to all fields that are not created by author. But allow edit (regardless of author) access to the imagefield.

Edit: [Probably doesn't apply] If this doesn't work it might help to install a helper module called module grants (http://drupal.org/project/module_grants). It ANDs access allow/deny between modules that deal with permissions instead of OR. See http://drupal.org/node/408816#appendix Though I suspect this doesn't apply cause one module is dealing with Node permissions and other with field permissions.

Sid NoParrots
That seems reasonable, but I've got this thing all hosed up now. I'll keep working on it.
jkuss
hook_field_access() is and'd by default, and may be used in a custom module for strange behaviors like this. But CCK field access is not the same thing as non-CCK access.
Grayside