Skip to content
Snippets Groups Projects

Issue #3419252: Enabling the module completely breaks form display on any content type (node)

Merged Issue #3419252: Enabling the module completely breaks form display on any content type (node)
1 unresolved thread
1 unresolved thread

Closes #3419252

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
26 26 /**
27 27 * Implements hook_entity_field_access().
28 28 */
29 function search_api_exclude_entity_entity_field_access($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL): AccessResultReasonInterface {
29 function search_api_exclude_entity_entity_field_access($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL): AccessResultInterface {
30 30 if ($field_definition->getType() == 'search_api_exclude_entity' && $operation == 'edit') {
31 if ($account->hasPermission('edit search api exclude entity:')) {
32 return AccessResult::neutral();
33 }
31 return AccessResult::allowedIfHasPermission($account, 'edit search api exclude entity');
34 32 }
35 return AccessResult::forbidden();
33 return AccessResult::allowed();
  • added 1 commit

    Compare with previous version

  • Please register or sign in to reply
    Loading