"Custom Breadcrumbs for Taxonomy" fieldset can also be seen for users without 'administer custom breadcrumbs' permissions too.
I have a user which can edit taxonomy terms but doesn't have the mentioned permission, but can see the following collapsible fieldset on the term edit form:

Custom Breadcrumbs for Taxonomy

Currently I have to unset this with an '#after_build' function:

  if(!user_access('administer custom breadcrumbs')){
    unset($form['custom_breadcrumbs_taxonomy_term']);
  }

But this should be done inside the module itself.

Comments

fengtan’s picture

I think that makes sense. A similar fieldset is displayed on node/XX/edit pages, only for users with the 'administer custom breadcrumbs' permission - see custom_breadcrumbs_form_node_form_alter().

We could do something similar in custom_breadcrumbs_taxonomy_form_taxonomy_form_vocabulary_alter(). Attached is a suggested patch.

fengtan’s picture

Status: Active » Needs review
lamp5’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)