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

andrewsuth’s picture

Version: 5.x-2.x-dev » 6.x-1.0
Priority: Normal » Critical

I've got the same problem but with the 6.x branch.

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?

ad6’s picture

Same problem to me but I found a better module http://drupal.org/project/taxonomy_role

xjm’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Category: support » bug
Priority: Critical » Normal

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.

xjm’s picture

Marked #239795: Doesn't work with free tagging as a duplicate of this issue.

xjm’s picture

Marked #127194: Problems with freetagging and TAC as duplicate of this issue.

xjm’s picture

xjm’s picture

xjm’s picture

Title: Form showing a free tag vocabulary ignoring taxonomy access rights » Free tag vocabularies do not respect TAC permissions
xjm’s picture

Title: Free tag vocabularies do not respect TAC permissions » Free tag vocabularies do not respect TAC and may cause duplicate term insertion
xjm’s picture