The autocomplete suggestion widget use the path taxonomy/autocomplete/* to return results.

Unfortunately, when setting the permission 'access and filter entities affiliate on user's assigned domains' the expected output isn't returned because in domain_entity_query_alter() control flow there is the following test before getting user's assigned domains:

  ...
  if (path_is_admin(current_path()) && user_access('access entities affiliate on assigned domains', $user)) {
    $user_domain = domain_get_user_domains($user);
    $accessible_domain_ids = !empty($user_domain) ? $user_domain : $accessible_domain_ids;
  }
  ...

(see http://cgit.drupalcode.org/domain_entity/tree/domain_entity.module?id=7....)

It is possible that other system ajax calls could be affected by this...

A solution was to use the hook_admin_paths_alter() to set the culprit path as an admin path:

/**
 * function hook_admin_paths_alter().
 */
function hook_admin_paths_alter(&$paths) {
  $paths['taxonomy/autocomplete/*'] = TRUE;
}

But, I don't know yet what side effects the above can trigger?...

Comments

drikc’s picture

Issue summary: View changes
drikc’s picture

drikc’s picture

Issue summary: View changes
bohart’s picture

Status: Active » Fixed

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module.
Neither development nor support is planned for D7.

All D7-related issues (especially those with 10+ years of inactivity) are marked as outdated in a bunch.
If/once the issue still arises in D11+ versions, please create a follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

bohart’s picture

Status: Fixed » Closed (outdated)