diff --git a/taxonomy_access.module b/taxonomy_access.module
index b56cd5d..f2f27ff 100644
--- a/taxonomy_access.module
+++ b/taxonomy_access.module
@@ -403,8 +403,10 @@ function taxonomy_access_field_widget_taxonomy_autocomplete_form_alter(&$element
 
   // If the field already has the maximum number of values, and all of these
   // values are disallowed, deny access to the field.
-  if (sizeof($disallowed_defaults) >= $context['field']['cardinality']) {
-    $element['#access'] = FALSE;
+  if ($context['field']['cardinality'] != FIELD_CARDINALITY_UNLIMITED) {
+    if (sizeof($disallowed_defaults) >= $context['field']['cardinality']) {
+      $element['#access'] = FALSE;
+    }
   }    
 
   // If the user may not create any terms on this field, deny access.
@@ -476,7 +478,7 @@ function taxonomy_access_field_widget_options_select_form_alter(&$element, &$for
   // values are disallowed, deny access to the field.
   $disallowed_defaults = 
     array_intersect($element['#default_value'], $disallowed_tids);
-  if ($context['field']['cardinality'] != -1) {
+  if ($context['field']['cardinality'] != FIELD_CARDINALITY_UNLIMITED) {
     if (sizeof($disallowed_defaults) >= $context['field']['cardinality']) {
       $element['#access'] = FALSE;
     }
