Solved!<div>Put the weight of my content access module lower.</div><div><br></div><div>Thanks again Benj &amp; Nancy for the tips</div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Jun 23, 2011 at 6:20 PM, toon severijns <span dir="ltr">&lt;<a href="mailto:toon.severijns@gmail.com">toon.severijns@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hey Benj,<div><br></div><div>Thanks again. This is what i was looking for. It seems to do what i want except for the &quot;author&quot; role. Including the &quot;author&quot; role doesn&#39;t seem to have any effect on granting access.</div>

<div>I&#39;m also having a hard time to find documentation on &quot;workflow access&quot;...</div><div><br></div><div>Best,</div><div><br></div><div><br></div><div>Toon<br><br><div class="gmail_quote"><div class="im">On Thu, Jun 23, 2011 at 5:06 PM, Benj Fredrick <span dir="ltr">&lt;<a href="mailto:benj.fredrick@gmail.com" target="_blank">benj.fredrick@gmail.com</a>&gt;</span> wrote:<br>

</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hello toon,<div><br></div><div>have you tried the workflow_access module? I think it comes with workflow, and should do what you&#39;re asking. (my experience with these modules is on D6).</div>

<div><br></div><div>-Benj</div>
<div><a href="http://dtek.net" target="_blank">http://dtek.net</a></div><div><br><br><div class="gmail_quote"><div><div></div><div>On Thu, Jun 23, 2011 at 3:13 AM, toon severijns <span dir="ltr">&lt;<a href="mailto:toon.severijns@gmail.com" target="_blank">toon.severijns@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>Hello All,<div><br></div><div>I am using the <b>Workflow</b> module to handle state flow of a certain content type i&#39;m using: <b>projects</b>. Depending on the particular workflow state and the role of the user, the user should be granted (or revoked) <b>edit access</b> to the node.</div>



<div><br></div><div>I passed on the option to use Rules as this is more for reactions on events, whereas i would need a general check on node workflow state to decide on user edit access.</div><div><br></div><div>I found out about the <b>Permissions API</b> module which gives me the ability to <b>grant or revoke permissions programmatically</b> based on role of the user and workflow state of the node. I call the permissions grant/revoke functions in <b>mymodule_preprocess_node_project </b>in <b>template.php</b>. This seems to work. The only issue i am having is the &quot;edit&quot;<b> local tasks menu item</b>. This only seems to be set on the second page load. In other words, the local tasks menu seems to be built before my permissions API functions have taken effect on first page load.</div>



<div><br></div><div>Any idea how i can solve this in a clean way?</div><div><br></div><div>Best,</div><div><br></div><font color="#888888"><div><br></div><div><br></div><div>Toon</div>
</font><br></div></div>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br></div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div></div></div><br></div>
</blockquote></div><br></div>