- $parent_access = $paragraph->getParentEntity()->access($operation, $account, TRUE);
- return AccessResult::allowedIf($operation != 'view' || $paragraph->status->value)
- ->andIf($parent_access);
+ // Library items have no support for parent entity access checking.
+ if ($paragraph->getParentEntity()->getEntityTypeId() != 'paragraphs_library_item') {
+ $parent_access = $paragraph->getParentEntity()->access($operation, $account, TRUE);
+ $access_result = $access_result->andIf($parent_access);
+ }