Menu Tree Access Control?
Hey all, I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built). The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed: http://drupal.org/project/menu_stp For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on. Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree. Please let me know if I'm missing something obvious. :) cheers -josh -- -------------------- Josh Koenig, Partner & CTO http://www.chapterthree.com
maybe the d6 version of book_access has some tips. On Thu, Apr 2, 2009 at 7:33 PM, Josh Koenig <josh@chapterthree.com> wrote:
Hey all,
I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built).
The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed:
http://drupal.org/project/menu_stp
For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on.
Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree.
Please let me know if I'm missing something obvious. :)
cheers -josh
-- -------------------- Josh Koenig, Partner & CTO http://www.chapterthree.com
Hey Josh, I'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. -Ryan On Fri, Apr 3, 2009 at 10:33 AM, Josh Koenig <josh@chapterthree.com> wrote:
Hey all,
I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built).
The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed:
http://drupal.org/project/menu_stp
For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on.
Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree.
Please let me know if I'm missing something obvious. :)
cheers -josh
-- -------------------- Josh Koenig, Partner & CTO http://www.chapterthree.com
Thanks for the tips, Moshe and Ryan! First of all, I should have said before I definitely look to release this as a compliment to menutrails module, so the development would definitely see the light of day. There's some chance I could use Taxonomy Access Control (or even TAC lite) for the use-case, but I think there's some value in trying to allow this functionality based on the menu tree. It's very intuitive for non-technical content managers to manage menu placement and to dole out access control based on these realms. If I can figure out how to tie it together w/menutrails in a smart way, it could be quite powerful and useful. Overall, this puts me back into the place of wishing for a more featureful, usable outlining system that combines much of book and menu modules. Maybe a summer project for D7. ;) cheers -josh On Thu, Apr 2, 2009 at 5:42 PM, Ryan Cross <drupal@ryancross.com> wrote:
Hey Josh, I'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. -Ryan
On Fri, Apr 3, 2009 at 10:33 AM, Josh Koenig <josh@chapterthree.com> wrote:
Hey all,
I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built).
The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed:
http://drupal.org/project/menu_stp
For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on.
Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree.
Please let me know if I'm missing something obvious. :)
cheers -josh
-- -------------------- Josh Koenig, Partner & CTO http://www.chapterthree.com
-- -------------------- Josh Koenig, Partner & CTO http://www.chapterthree.com
On 2-Apr-09, at 8:56 PM, Josh Koenig wrote:
Overall, this puts me back into the place of wishing for a more featureful, usable outlining system that combines much of book and menu modules. Maybe a summer project for D7. ;)
I'm working on a site nearing completion which uses Books and book_access for a case similar to yours, though without quite as much granularity. We've been quite happy with book_access. If you pursue a more fine-tuned system for permissions within a book outline, let's get a group going and see what we can come up with, as I think it's something my clients would be interested in.
I'm not 100% sure I'm following your needs here, but this module may be along the same lines:
It looks like the "menu_access" suite of modules has quite a bit of duplication with other modules, especially nodeaccess (note the lack of an underscore). I'm kind of confused by the description, as it seems like you can provide per-menu-item permissions, though those should usually be calculated on a per-path basis automatically. Hopefully any useful features can be merged in to other more popular modules. --Andrew
This thread might be relevant: http://groups.drupal.org/node/16134 Josh Koenig wrote:
Hey all,
I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built).
The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed:
http://drupal.org/project/menu_stp
For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on.
Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree.
Please let me know if I'm missing something obvious. :)
cheers -josh
-- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Click. Connect. Learn. ph. 503 897 7160
I'm not 100% sure I'm following your needs here, but this module may be along the same lines: http://drupal.org/project/menu_access -Mike On Apr 2, 2009, at 4:33 PM, Josh Koenig wrote:
Hey all,
I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built).
The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed:
http://drupal.org/project/menu_stp
For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on.
Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree.
Please let me know if I'm missing something obvious. :)
cheers -josh
-- -------------------- Josh Koenig, Partner & CTO http://www.chapterthree.com
__________________ Michael Prasuhn 503.488.5433 office 714.356.0168 cell 503.661.7574 home mike@mikeyp.net http://mikeyp.net
Do you need view access control or edit access control? We (Palantir) actually just developed an edit access control module based on menu position for a client. We plan to release it as soon as the site launches, which hopefully shouldn't be too long. What's your time frame? On Thursday 02 April 2009 6:33:02 pm Josh Koenig wrote:
Hey all,
I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built).
The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed:
http://drupal.org/project/menu_stp
For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on.
Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree.
Please let me know if I'm missing something obvious. :)
cheers -josh
-- Larry Garfield larry@garfieldtech.com
We (FunnyMonkey) released the book manager, which gives individuals the right to create book that only they can add pages to. The nodes within those inividual books can then be governed by any of the usual suspects wrt access control. So, a menu admin could create the outline, with people being granted access to edit/view nodes as needed. What's missing, of course, is access rights that cascade down the hierarchy. But the Book Manager is here: http://drupal.org/project/book_manager Cheers, Bill Larry Garfield wrote:
Do you need view access control or edit access control? We (Palantir) actually just developed an edit access control module based on menu position for a client. We plan to release it as soon as the site launches, which hopefully shouldn't be too long. What's your time frame?
On Thursday 02 April 2009 6:33:02 pm Josh Koenig wrote:
Hey all,
I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built).
The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed:
http://drupal.org/project/menu_stp
For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on.
Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree.
Please let me know if I'm missing something obvious. :)
cheers -josh
-- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Click. Connect. Learn. ph. 503 897 7160
I've created a g.d.o page to document this. http://groups.drupal.org/node/20913 Larry, it'd be great if you could add your module when you release it, especially any rationale as to why you didn't look at expanding the other modules out there. --Andrew On 3-Apr-09, at 10:46 AM, Bill Fitzgerald wrote:
We (FunnyMonkey) released the book manager, which gives individuals the right to create book that only they can add pages to.
The nodes within those inividual books can then be governed by any of the usual suspects wrt access control.
So, a menu admin could create the outline, with people being granted access to edit/view nodes as needed.
What's missing, of course, is access rights that cascade down the hierarchy.
But the Book Manager is here: http://drupal.org/project/book_manager
Cheers,
Bill
Larry Garfield wrote:
Do you need view access control or edit access control? We (Palantir) actually just developed an edit access control module based on menu position for a client. We plan to release it as soon as the site launches, which hopefully shouldn't be too long. What's your time frame? On Thursday 02 April 2009 6:33:02 pm Josh Koenig wrote:
Hey all,
I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built).
The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed:
http://drupal.org/project/menu_stp
For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on.
Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree.
Please let me know if I'm missing something obvious. :)
cheers -josh
--
Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Click. Connect. Learn. ph. 503 897 7160
You might also want to look at Monsters Menu which does some sophisticated stuff: http://groups.drupal.org/node/10231 Kyle Research Assistant eBusiness Center @ BYU kyle.mathews2000.com/blog On Fri, Apr 3, 2009 at 10:51 AM, Andrew Berry <andrewberry@sentex.net>wrote:
I've created a g.d.o page to document this.
http://groups.drupal.org/node/20913
Larry, it'd be great if you could add your module when you release it, especially any rationale as to why you didn't look at expanding the other modules out there.
--Andrew
On 3-Apr-09, at 10:46 AM, Bill Fitzgerald wrote:
We (FunnyMonkey) released the book manager, which gives individuals the
right to create book that only they can add pages to.
The nodes within those inividual books can then be governed by any of the usual suspects wrt access control.
So, a menu admin could create the outline, with people being granted access to edit/view nodes as needed.
What's missing, of course, is access rights that cascade down the hierarchy.
But the Book Manager is here: http://drupal.org/project/book_manager
Cheers,
Bill
Larry Garfield wrote:
Do you need view access control or edit access control? We (Palantir) actually just developed an edit access control module based on menu position for a client. We plan to release it as soon as the site launches, which hopefully shouldn't be too long. What's your time frame? On Thursday 02 April 2009 6:33:02 pm Josh Koenig wrote:
Hey all,
I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built).
The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed:
http://drupal.org/project/menu_stp
For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on.
Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree.
Please let me know if I'm missing something obvious. :)
cheers -josh
--
Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Click. Connect. Learn. ph. 503 897 7160
Yet another suggestion for modules you might want to review: http://drupal.org/project/admin_access It's more of an integrated approach to access controls. A quick snip from the project page: "Special care was taken to ensure the usability of permission management was consistent across all sections of the system (nodes, menus, menu items). Also each security module uses a cascading security scheme to allow global security and the option to override or define exceptions to the security model for individual items." andrew On Thu, Apr 2, 2009 at 4:33 PM, Josh Koenig <josh@chapterthree.com> wrote:
Hey all,
I'm about to launch into yet another custom module build, and I wanted to see if I'm missing the obvious and this thing already exists (or has been somewhat built).
The use case is to allow access to nodes (node_access) based on their placement within a drupal menu tree. Seems obvious, but keyword searching through available modules didn't turn up anything that seemed to match. I did locate the "Menu Subtree" module which seems to provide some complimentary functionality in terms of restricting the areas of a menu tree into which new nodes can be placed:
http://drupal.org/project/menu_stp
For access, it points to fago's menu_per_role module, but this is about access to menu links, not node permissions. In the other node-access modules, I didn't find one that seeks to allow/deny access based on menu position. So that's what I'll begin working on.
Implementation seems fairly straightforward based on hook_node_access_records() and hook_node_grants(). Assuming I'm right, the next fun thing would be looking at integrating this with menutrails.module so it can work for broader classes of nodes and not just those placed directly into the menu tree.
Please let me know if I'm missing something obvious. :)
cheers -josh
-- -------------------- Josh Koenig, Partner & CTO http://www.chapterthree.com
participants (9)
-
Andrew Berry -
andrew morton -
Bill Fitzgerald -
Josh Koenig -
Kyle Mathews -
Larry Garfield -
Michael Prasuhn -
Moshe Weitzman -
Ryan Cross