Closed (fixed)
Project:
Taxonomy Term Permissions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2009 at 20:45 UTC
Updated:
13 Dec 2011 at 14:07 UTC
Jump to comment: Most recent
Comments
Comment #2
lordzik commentedHello,
$total_terms = count($vocabulary['#options']) - 1;
This is wrong. If an user have permissions for only one term in a vocabulary and a new eg. story requires at least one term to be selected then Drupal does not allow an user to create new content.
Changing to this resolves the problem:
$total_terms = count($vocabulary['#options']);
Regards.
Comment #3
Anonymous (not verified) commentedit solved the problem
Comment #4
deviantintegral commentedI opened a new issue at #1369522: Fix off-by-one error when users have access to only one term for this given how long this had been closed. In the future, when an issue has been marked as closed, it's better to post a new issue linking back to the old one.