Skip to content
Snippets Groups Projects
Commit d4618409 authored by Rotekian's avatar Rotekian Committed by Andrii Podanenko
Browse files

Issue #3321269: Replace EventInstance access handler

parent ff6e3539
No related branches found
No related tags found
1 merge request!63Issue #3321269: Event Instances can't be edited by users with Group permission to edit their parent Event Series
......@@ -42,3 +42,12 @@ function group_recurring_events_series_entity_operation(EntityInterface $entity)
return $operations;
}
/*
* hook_entity_type_build
*/
function group_recurring_events_series_entity_type_build(array &$entity_types) {
if(isset($entity_types['eventinstance'])) {
$entity_types['eventinstance']->setHandlerClass('access', 'Drupal\group_recurring_events_series\Access\GroupEventInstanceHandler');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment