Posted by mburak on December 7, 2007 at 3:05pm
Jump to:
| Project: | Taxonomy Access Control |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
I'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?
#2
Same problem to me but I found a better module http://drupal.org/project/taxonomy_role
#3
I'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.
#4
Marked #239795: Doesn't work with free tagging as a duplicate of this issue.
#5
Marked #127194: Problems with freetagging and TAC as duplicate of this issue.
#6
Marked #301557: Not working - I'm trying to allow Update of Page Node as duplicate of this issue.
#7
Marked #219511: Duplicate terms creation allowed as duplicate of this issue. See also #168709: Duplicate taxonomy terms inserted by freeform tagging. Fix included..
#8
#9
#10
See also #202039: Content Taxonomy Autocomplete terms are created twice if role does not have "create" privs for the vocab.
#11
Marked #1076664: Users w/o 'create' permissions can still create terms in free tagging. as duplicate.