If you have more then one term in a vocabulary, removing access to any term removes access to the whole vocabulary. The attached patch fixes this and will be committed shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| required_vocabulary_fix.patch | 2.17 KB | deviantintegral |
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.