Form showing a free tag vocabulary ignoring taxonomy access rights
mburak - December 7, 2007 - 15:05
| Project: | Taxonomy Access Control |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

#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