Answers.Body: <p>Did you tried using <a href="https://www.drupal.org/project/disable_breadcrumbs" rel="nofollow noreferrer">Disable breadcrum drupal module</a>?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-07T11:27:40.463Z
Answers.Text: Yes, this seems to be installed. All Breadcrumbs are disabled in Drupal menue > Design > Disable breadcrumbs. But it only deactivates the Drupal breadcrumbs, not the ones from CiviCRM.
Answers.UserDisplayName: emma
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-07T11:09:34.883Z
Answers.LastActivityDate: 2020-10-07T11:09:34.883Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I want to disable the CiviCRM breadcrumbs inside the program code for security reasons.</p>
  <p>I tried modifying sites/all/modules/civicrm/CRM/Core/DAO/Menu.php by adding <code>$skipBreadcrumb['type'] = TRUE;</code> in the <code>public static function &amp;fields()</code> function (where $skipBreadcrumb is set).</p>
  <p>I also tried commenting out the <code>public function addBreadCrumb()</code> and its call in <code>public function preProcess()</code> inside the sites/all/modules/civicrm/CRM/Report/Form.php.
  I know the path sounds incorrect for what I want to do, but it was the only search result for 'breadcrumb' in a function that I could find.</p>
  <p>Can anyone give me a hint?</p>
  <p>Edit: Probably it was exaggerated to talk of security reasons here. It is more about not making any pages visible as default that users don't need, that is, keeping the (visible) system slim.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-07T12:06:47.277Z
Comments.Text: What are the security reasons for disabling breadcrumbs?  If there is a strong case then maybe this should be an option in core or extension.
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-07T14:34:07.920Z
Comments.Text: The idea is that users should not be able to access the CiviCRM dashboard (not via breadcrumbs nor any other way). (It has not been my own idea though).
Comments.UserDisplayName: emma
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-07T15:14:43.390Z
Comments.Text: Ok, have you worked out what permissions and ACL's you need so that users can only access what you want?  Menus are updated based on access but I'm not sure about breadcrumbs.  In other words, if the permissions are correct you may not need to do anything special about breadcrumbs.
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-08T12:12:25.737Z
Comments.Text: Yes, we have a rights management system, but the CiviCRM dashboard could only be made inaccessible to standard users via a Rule. We don't want to use a Rule because it is called on every page call and makes the system slower.
Comments.UserDisplayName: emma
Tags: <security>
Title: Disabling Breadcrumbs in CiviCRM
ThreadText: # Disabling Breadcrumbs in CiviCRM
  
  (Asked by: username_0 on 2020-10-07)
  
  I want to disable the CiviCRM breadcrumbs inside the program code for security reasons.
  
  I tried modifying sites/all/modules/civicrm/CRM/Core/DAO/Menu.php by adding `$skipBreadcrumb['type'] = TRUE;` in the `public static function &fields()` function (where $skipBreadcrumb is set).
  
  I also tried commenting out the `public function addBreadCrumb()` and its call in `public function preProcess()` inside the sites/all/modules/civicrm/CRM/Report/Form.php.
  I know the path sounds incorrect for what I want to do, but it was the only search result for 'breadcrumb' in a function that I could find.
  
  Can anyone give me a hint?
  
  Edit: Probably it was exaggerated to talk of security reasons here. It is more about not making any pages visible as default that users don't need, that is, keeping the (visible) system slim.
  
  **Tags:** security
  
  > **Comments:**
  > **username_1**: What are the security reasons for disabling breadcrumbs?  If there is a strong case then maybe this should be an option in core or extension.  
  > **username_0**: The idea is that users should not be able to access the CiviCRM dashboard (not via breadcrumbs nor any other way). (It has not been my own idea though).  
  > **username_1**: Ok, have you worked out what permissions and ACL's you need so that users can only access what you want?  Menus are updated based on access but I'm not sure about breadcrumbs.  In other words, if the permissions are correct you may not need to do anything special about breadcrumbs.  
  > **username_0**: Yes, we have a rights management system, but the CiviCRM dashboard could only be made inaccessible to standard users via a Rule. We don't want to use a Rule because it is called on every page call and makes the system slower.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-10-07. Score: 0
  
  Did you tried using [Disable breadcrum drupal module](https://www.drupal.org/project/disable_breadcrumbs)?
  
  > **Comments:**
  > **username_0**: Yes, this seems to be installed. All Breadcrumbs are disabled in Drupal menue > Design > Disable breadcrumbs. But it only deactivates the Drupal breadcrumbs, not the ones from CiviCRM.  
  
  ---
  
  