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
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

andrewsuth - July 5, 2009 - 10:28
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

ad6 - July 30, 2009 - 14:08

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

 
 

Drupal is a registered trademark of Dries Buytaert.