Hello yogadex,
Just started using your module and am running into a basic road block. My taxonomy is split across multiple levels (eg. country, region, location) and each of my users would access to different levels as well... For example, I have access to all 'USA', you has access to all 'East Coast', and she has access to all 'New York'.
Since I have access to 'USA', I thought that I would still be able to see any posts using either the 'East Coast' or 'New York' categories. Unfortunately, I'm coming up blank... I've tried checking my Recent Posts page as well as using the taxonomy term url (eg taxonomy/term/22/3). Nothing worked yet.
Does your module automatically include any sub-categories within my privileges? Or would I need to specifically give myself access to all sub-categories? Thanks for letting me know.
Comments
Comment #1
Dave Cohen commentedno, TAC Lite does nothing special to handle this situation. In Drupal's taxonomy, a node is either tagged with a term or not. And in the case of a hiearachy, there is no inheritance. That is, tagging a node with 'New York' does not automatically tag it with 'USA'. I've found myself wanting that behavior in some cases, but as of yet do not have a good way to provide it.
The proper solution would actually tag the node with the 'USA' term, that way the node would appear on the USA term page, for example. So in this respect TAC Lite is consistant with other Drupal features. Please let me know if you come up with a good solution. Sorry I can't help more.
Comment #2
terrybritton commentedYogadex, very nice module. I would like to second this request, which becomes especially important when you use organic groups and og forums. Since the forums are created automatically when a group is created, I don't know when I need to change permissions in tac lite.
Excuse me if I'm missing the point, but wouldn't this also be a module issue, rather than just a node issue. Yes the node doesn't know what it's parent is, but in the module couldn't you include a vocab and all of it's children? So if I highlight USA, all of its children (east coast, west coast, etc.) would be included without me having to highlight them. I understand not everyone would want this, so maybe a check box to decide if children are included?
Comment #3
Dave Cohen commentedSo, if you are using the taxonomy created by organic groups to control privacy, I think you will have a problem. In fact you're running into it already. A user creates a group, which creates a new term, and noone can see that term, because the access control prevents anyone from viewing it. And now you are hoping that tac_lite can detect the creation of a new term, and automatically give a user permission to view it. But that solves the problem only for the user who created the group. Noone else will see the term, or the group. So it will be a very lonely group with just one member. Better, I think, to not use the organic groups vocabulary to control privacy. But I don't know how organic groups works in any detail, so maybe I am missing something.
If you set up a hierarchical taxonomy, with regions under country names, the taxonomy module associates with a node only the terms you select. If you select USA, that term is associated with the node, and anyone with permission to view that term can see the node. If you select East Coast, then only users with that permission can see it. If you select both USA and East Coast, users who can see either term can see the node. So I think what you both want is when a node is tagged East Coast, you want it automatically tagged USA, and so on up the taxonomy tree (i.e. North America, Earth, what have you). This is something that could be done when the node is created/edited. But it would be way too expensive a query to do on the fly during an access control check.
If that is the change you want, it must be made in the taxonomy module, not tac_lite. It would be a useful option when creating a nested taxonomy for a number of reasons, of which access control is only one. Tac_lite is not the place for it. I often get feature requests that, IMHO, threaten to take the 'lite' out of tac_lite. And I won't accept those changes unless I'm really convinced they belong.
Comment #4
WorldFallz commentedI know it's an old thread, but in case anyone else stumbles upon it-- I've solved this problem with the hierarchical_select module. It has an option to save the entire hierarchy of a hierarchical vocabulary. So for example, if a user select's "New York' hs will also tag the node with "East Cost" and "USA".