After restricting role access to the individual terms, the restricted user can still view the vocabulary drop box in the node edit form. The terms are not available, but instead there is a drop down that says --None selected--.

I don't want the vocabulary to be visible at all, unless it is just informational: You are a Founding Member.

Is this a bug or am I missing a step somewhere?

TIA!

-L

CommentFileSizeAuthor
#2 480224_remove_vocabulary.patch1.89 KBdeviantintegral

Comments

deviantintegral’s picture

I think this crosses the line between bug and feature request; it's behaving as expected, but probably not as users would want it.

It should be fairly simple to write a patch where if the number of available terms is zero, unset the entire form element.

deviantintegral’s picture

Status: Active » Fixed
StatusFileSize
new1.89 KB

Here is a patch which removes the vocabulary form item if the user doesn't have access to any of the terms. As well, if the vocabulary is required, it denies access to the add or edit page entirely, sets a warning message, and logs the error for an admin to fix.

I'll be committing this in a moment.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.