The second issue above is still an issue in v5.0.2. We are seeing in Bootstrap Paragraph Tabs.
To answer @kerrymick's question: yes, this crops up when you add a layout paragraph in the tab section body (to, say, allow a 2-column layout in the body of a tab). The 2-column layout renders fine, and then the paragraphs from inside the layout render again, stacked below it.
We are doing a version of @mgtak's solution but we have tab content on the site already, so it's not ideal. We enabled Require Paragraphs to be added inside a layout for all tab sections going forward, but added a conditional to account for old content. Old stuff still renders and can be edited, but any new tab sections must be in a layout.
sgraham42 → created an issue.
#31 worked for me to fix this issue. Drupal 9.5.8
(been 2 months since the last comment, thought I'd chime in)
Adding additional info here as a comment, because it may not be relevant:
the Permissions by Term module seems to use the Grants system for access restrictions. Perhaps this has something to do with it?
My current solution is to add a custom patch just for us that adds a Permissions by Term access check to the EntityPrintController.php in checkAccess():
// Ensure access via Permissions By Term
if ($entity_type == 'node') {
/* @var \Drupal\permissions_by_term\Service\AccessCheck $accessCheck */
$accessCheck = \Drupal::service('permissions_by_term.access_check');
$nodeToCheck = \Drupal\node\Entity\Node::load($entity_id);
if (!$accessCheck->canUserAccessByNode($nodeToCheck)) {
return AccessResult::forbidden();
}
}
This, of course, is not a solution for the module itself, but I include it here because maybe it helps to find a real solution?