? .svn
? primary_term-357331-3.patch
? primary_term-503422-2.patch
Index: primary_term.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/primary_term/primary_term.module,v
retrieving revision 1.8
diff -u -p -r1.8 primary_term.module
--- primary_term.module	15 Sep 2008 14:14:57 -0000	1.8
+++ primary_term.module	13 May 2010 18:15:44 -0000
@@ -84,12 +84,18 @@ function primary_term_form_alter(&$form,
     case $type .'_node_form':
   
       if ($vids = variable_get('pt_vocabs_'. $form['type']['#value'], array())) {
+
+        if (module_exists('taxonomy_role')) {
+          $vocabularies = taxonomy_get_vocabularies();
+        }
         
         // go through all taxonomy terms for this type:
         $terms = array();
         if(is_array($form['taxonomy'])){
           foreach($form['taxonomy'] as $vid => $vocab){
-            if(in_array($vid, $vids)){
+            if(in_array($vid, $vids) &&
+               (!isset($vocabularies) || (is_numeric($vid) && user_access('access '. check_plain($vocabularies[$vid]->name) .' vocabulary')) ) ) {
+
               if(is_array($vocab['#options'])){
                 if(strlen(trim($vocab['#options']))){
                   // not sure why we have the line below. from old days.
