Needs review
Project:
Taxonomy Access Control
Version:
7.x-1.x-dev
Component:
Integration with other modules
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2012 at 06:16 UTC
Updated:
13 Feb 2012 at 17:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
ksenzeeHere's a start at a patch for this. I tried writing a query that would pull in vocabulary and global defaults as well as term-specific grants, but I got lost in a maze of twisty left outer joins, all alike, and gave up. Term-specific grants are good enough for my particular needs, but I'm hoping someone else can supply the deficiency there (marked with a TODO).
It would also be great to extend this to edit/delete/etc. grants; all it needs is an option on the handler. I didn't have time to put that together, but I can, if there's interest.
Comment #2
xjmRather than writing a new query, could we use the TAC query builder helper function? The base builder is
_taxonomy_access_grant_query();_taxonomy_access_node_access_records()has an example of how it's used.(I've considered subclassing core
SelectQueryas a special TAC query class, but been hindered by "no idea what I'm doing" and "not sure if that would actually help anything" factors.)Comment #3
ksenzeeYeah, I tried that, and didn't surface until two hours later, with a query that returned I have no idea what. :/