When you allow Multiple select on a taxonomy, you must set up at least 2 terms to be allowed to be used by the user otherwise you get an error like:

"Access denied

Your account doesn't have permission to use any of the terms in the foobar vocabulary. Your account must be given permission to use at least one term in the foobar vocabulary to be able to add or edit the foobar2 content type.

You are not authorized to access this page."

With only 1 term...

Comments

stephenrobinson’s picture

Project: Taxonomy Access Control » Taxonomy Term Permissions
Version: 6.x-1.2 » 6.x-1.0
elliotttt’s picture

Status: Needs work » Closed (duplicate)

Might want to see this:
http://drupal.org/node/668704

stephenrobinson’s picture

Status: Closed (duplicate) » Needs review
StatusFileSize
new902 bytes

Hi,
Have fixed this issue, see the patch

stephenrobinson’s picture

Cheers, found the offending line:

//$total_terms = count($vocabulary['#options']) - 1;

($vocabulary['#multiple']==1) ? $total_terms = count($vocabulary['#options']) : $total_terms = count($vocabulary['#options']) - 1;

peter.walter’s picture

StatusFileSize
new852 bytes

Better and more optimal use of the ternary operator would be:

  $total_terms = count($vocabulary['#options']) - $vocabulary['#multiple'] ? 1 : 0;

Updated patch attached.

soulfroys’s picture

Only works for me with parentheses around the ternary statement:

$total_terms = count($vocabulary['#options']) - ($vocabulary['#multiple'] ? 1 : 0);