added some config that was missed / wrong

This commit is contained in:
naomi 2018-07-19 20:01:59 +02:00
parent 679f40c16d
commit fd661f6a2f
2 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,6 @@ default_value_callback: 'Drupal\opencase_entities\Entity\OCCase::defaultVal'
settings: settings:
handler_settings: handler_settings:
target_bundles: target_bundles:
client: client volunteer: volunteer
handler: default handler: default
field_type: entity_reference field_type: entity_reference

View File

@ -29,7 +29,9 @@ function opencase_block_access(\Drupal\block\Entity\Block $block, $operation, \D
'view.activities.page_1', 'view.activities.page_1',
'entity.oc_activity.canonical', 'entity.oc_activity.canonical',
'entity.oc_activity.edit_form', 'entity.oc_activity.edit_form',
'entity.oc_activity.add_form' 'entity.oc_activity.add_form',
'system.menu.opencase-add-actors',
'block.block.opencaseaddactors',
]; ];
return AccessResult::forbiddenIf(!in_array($route_name, $routes_where_it_should_be_shown))->addCacheableDependency($block); return AccessResult::forbiddenIf(!in_array($route_name, $routes_where_it_should_be_shown))->addCacheableDependency($block);
} }