Issue #3419252: Enabling the module completely breaks form display on any content type (node)
Merged
requested to merge issue/search_api_exclude_entity-3419252:3419252-enabling-the-module into 3.0.x
1 unresolved thread
Closes #3419252
Merge request reports
Activity
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(); changed this line in version 3 of the diff
Please register or sign in to reply