Hey Josh, <div><br></div><div>I&#39;ve had a similar need, but I was able to make taxonomy_access work for me. Not sure what your specs are, but it might be a reasonable thing to consider before building a custom module. </div>

<div><br></div><div>-Ryan<br><br><div class="gmail_quote">On Fri, Apr 3, 2009 at 10:33 AM, Josh Koenig <span dir="ltr">&lt;<a href="mailto:josh@chapterthree.com">josh@chapterthree.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 all,<br>
<br>
I&#39;m about to launch into yet another custom module build, and I wanted<br>
to see if I&#39;m missing the obvious and this thing already exists (or<br>
has been somewhat built).<br>
<br>
The use case is to allow access to nodes (node_access) based on their<br>
placement within a drupal menu tree. Seems obvious, but keyword<br>
searching through available modules didn&#39;t turn up anything that<br>
seemed to match. I did locate the &quot;Menu Subtree&quot; module which seems to<br>
provide some complimentary functionality in terms of restricting the<br>
areas of a menu tree into which new nodes can be placed:<br>
<br>
<a href="http://drupal.org/project/menu_stp" target="_blank">http://drupal.org/project/menu_stp</a><br>
<br>
For access, it points to fago&#39;s menu_per_role module, but this is<br>
about access to menu links, not node permissions. In the other<br>
node-access modules, I didn&#39;t find one that seeks to allow/deny access<br>
based on menu position. So that&#39;s what I&#39;ll begin working on.<br>
<br>
Implementation seems fairly straightforward based on<br>
hook_node_access_records() and hook_node_grants(). Assuming I&#39;m right,<br>
the next fun thing would be looking at integrating this with<br>
menutrails.module so it can work for broader classes of nodes and not<br>
just those placed directly into the menu tree.<br>
<br>
Please let me know if I&#39;m missing something obvious. :)<br>
<br>
cheers<br>
-josh<br>
<font color="#888888"><br>
--<br>
--------------------<br>
Josh Koenig, Partner &amp; CTO<br>
<a href="http://www.chapterthree.com" target="_blank">http://www.chapterthree.com</a><br>
</font></blockquote></div><br></div>