Hi there

I just recently set up a Drupal 7 site from scratch for a friend's business - I have used Drupal 6 in all of my sites in the past and been really impressed, and I've been waiting for a chance to try out 7. I am using the taxonomy access control to prohibit anonymous users from seeing certain web pages and all gallery and forum content. I created content vocabulary for a content field called 'Access' with terms for 'public' versus 'private' and TAC worked like a charm for every content type (I event created a few test types while I was troubleshooting this issue and they all worked great once I added the field), except forum posts. Authenticated users were able to view and comment on existing topics, but they were unable to create new posts within forums or see any of the forums listed or their containers.

I downloaded and set up the Forum Access module and it did not make any difference, (unless I disabled TAC, then the forum-by-forum permissions I created in Forum Access worked fine but of course the TAC-enabled permissions I set up for all of the other content types did not) but as soon as I enable TAC the forums disappear again. So I dished FA. I have rebuilt permissions, emptied caches, etc.

I went under the taxonomy control and added the 'Access' field and updated all of the containers and forums I created with the 'Private' term, the same as I have done for all of the content types we use on the site, but still it made no difference. In the end I went down the entire permission list, enabling permissions for authenticated users against my admin privs and checking to see if the forums would list. In the end, I had to give authenticated users the 'Administer vocabularies and terms' privilege and then were they able to see and post within the forums with TAC enabled.

What seems to be the issue (in my limited technological expert opinion) is that TAC is only being applied to content types but not to the forums and their containers themselves, or I have misunderstood how to apply taxonomies to Forums and their containers, which is a good possibility, (and judging from the lack of information I've found on this issue, likely). If not, then it's something to look at.

Thanks for a great module - it provides vital functionality that I was frankly surprised was still missing in this new version of Drupal.

CommentFileSizeAuthor
#4 anonymous.png62.06 KBccurwen
#4 authenticated.png57.52 KBccurwen

Comments

xjm’s picture

Taxonomy access is content-type agnostic and should work fine with forums. Chances are your grants are not set up properly. Could you please post screenshots of your TAC configurations for anonymous, authenticated, and any custom roles? Remember that the forum containers and forums are taxonomy terms, so whatever defaults they inherit will affect your access.

xjm’s picture

Category: bug » support
xjm’s picture

Title: Taxonomy access control not forum aware » Taxonomy access control and forum configuration
ccurwen’s picture

StatusFileSize
new57.52 KB
new62.06 KB

Sorry for my tardy response I thought I would get an email if there were replies. I have TAC enabled for only these roles and with the following configuration every other type of content (including the actual posts themselves in the forums that were made by an administrator) are viewable by authenticated users only.

xjm’s picture

Edit: deleting comment. I think I need to re-read your post.

Edit: Okay, got it now. You need to grant authenticated users Create and List permissions for the Forum vocabulary default. That should do the trick. :)

ccurwen’s picture

Hey xjm thanks for your help with this.

Sorry it took me a while to get back to this issue; I don't think I understand - where am I making these changes?

I went into Configuration>TAC>authenticated user and under Forums I added 'Allow' under VIEW and UPDATE for all of the containers and forums. Still can't see them.

I checked People>Permissions and under Forums the authenticated users already have permissions to 'Create New Content' and 'Delete Own Content'

I checked under Structure>Taxonomy but I don't see 'Create' and 'List' in any vocabularies.

I feel like I'm taking crazy pills! Where am I not looking to find this?

xjm’s picture

#6: My fault, those are the old names for the permissions. :) I should have seen from your screenshot you have a newer dev build. Grant authenticated users Add tag and View tag permissions for the forum vocabulary default at admin/config/people/taxonomy_access/edit/2.

xjm’s picture

Status: Active » Postponed (maintainer needs more info)