Download & Extend

Free tag vocabularies do not respect TAC and may cause duplicate term insertion

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

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?

#2

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

#3

Version:6.x-1.0» 6.x-1.x-dev
Category:support request» bug report
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.

#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

#7

#8

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

#9

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

#11

nobody click here