You might be able to uncheck the &quot;administer nodes&quot; permission and ensure that the &quot;edit any &lt;content type&gt;&quot; permission is checked for role2.  This would probably circumvent the permission denied error, although I&#39;m not entirely certain as it is a bit of an edge case.<br>
<br>If all else fails, you could use form_alter to hide and unhide the appropriate fields based on the user role.  This would require creating a module and implementing hook_form_alter (<a href="http://api.drupal.org/api/function/hook_form_alter/6">http://api.drupal.org/api/function/hook_form_alter/6</a>).  The list could help step you through how to do that.<br>
<br>Best,<br>William<br><br><div class="gmail_quote">On Wed, Apr 14, 2010 at 2:09 PM, Mutuku Ndeti <span dir="ltr">&lt;<a href="mailto:jnmutuku@gmail.com">jnmutuku@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hellos,<br><br>New to drupal. I have created a custom cck form, where information is filled by different users on the same form<br><br>User 1(with role 1) fills cck field A, B C,  then user 2(with role2) fills in cck fields D and E. I have set permissions for the different roles where under the &quot;content_permissions module&quot;  to allow users onl to fill fields that they have permissions to fill. User 1 works well and creates the node and fills only their fields. <br>

<br>When user 2 accesses the same node, they get &quot;permission denied error&quot;. I solved this by enabling &quot;administer nodes&quot; under the &quot;node module&quot; permissions. <br><br>The problem I am facing is with this enabled, user 2 can edit user 1 fields. How can I stop this?<br>

<br>Thanks<br>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>