Disable showing "Custom Breadcrumbs for Taxonomy" for users without 'administer custom breadcrumbs' permission

Created on 18 October 2012, almost 13 years ago
Updated 17 July 2025, 27 days ago

"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:

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.

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇭🇺Hungary Sk8erPeter

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024