Active
Project:
Taxonomy Access Control
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2007 at 15:05 UTC
Updated:
1 Mar 2011 at 02:03 UTC
I have a free tag vocabulary and i'm trying to prevent the anonymous user to view that vocabulary when creating nodes.
I set up the right privileges but the anonymous user still sees the vocabulary.
I noticed that you have added the following code in the taxonomy_access_db_rewrite_sql function:
// Insert required vocabularies to avoid skipping of validation at node submission
if ($op == 'create') {
$sql = db_query('SELECT vid FROM {vocabulary} WHERE required = 1 OR tags = 1');
while ($row = db_fetch_array($sql)) {
$vids[$row['vid']] = $row['vid'];
}
}
This code means that you are always adding the free tag vocabularies ignoring permissions.
Why did you do that?
Thanks,
Matias.
Comments
Comment #1
andrewsuth commentedI've got the same problem but with the
6.xbranch.I can set the module to obey permissions for all taxonomy vocabularies, except for those configured as free
tags. I am trying to deny access to view it for all users - no matter how I set-up the permissions, it still appears!Any idea how to get this to work?
Comment #2
ad6 commentedSame problem to me but I found a better module http://drupal.org/project/taxonomy_role
Comment #3
xjmI've also used taxonomy_role as a workaround to hide an administrator-only vocabulary from most users.
I confirmed that freetagging vocabularies seem to ignore their TAC settings; seems like a bug to me.
Comment #4
xjmMarked #239795: Doesn't work with free tagging as a duplicate of this issue.
Comment #5
xjmMarked #127194: Problems with freetagging and TAC as duplicate of this issue.
Comment #6
xjmMarked #301557: Not working - I'm trying to allow Update of Page Node as duplicate of this issue.
Comment #7
xjmMarked #219511: Duplicate terms creation allowed as duplicate of this issue. See also #168709: Duplicate taxonomy terms inserted by freeform tagging. Fix included..
Comment #8
xjmComment #9
xjmComment #10
xjmSee also #202039: Content Taxonomy Autocomplete terms are created twice if role does not have "create" privs for the vocab.
Comment #11
xjmMarked #1076664: Users w/o 'create' permissions can still create terms in free tagging. as duplicate.