I am currently using Drupal 8.8.5 and Paragraphs 8.x-1.11.

I realize this is probably a huge edge case, but we are pushing Drupal and Paragraphs to its limits and are seeing one last issue that I can't seem to get past. We have several custom blocks that utilize paragraphs that we can then add inline to Layout Builder. We are also using Content Moderation and the site has several languages. We are using the Layout Builder Asymmetric Translation module to be able to allow each translation of a node to have its own layout. So this is all working great, believe it or not, except for one issue specific to Paragraphs.

If a node that contains a custom block that has paragraphs in it in Layout Builder is edited and then put in Draft status, the paragraphs are no longer editable. If you go into Layout Builder and attempt to configure the custom block that has a paragraph in it, you get the message

You are not allowed to edit or remove this Paragraph.

I've scoured the forums and I see people having similar issues, but I'm not sure if they are using the same combination of modules that I am. Ive tried so many different combinations of patches and nothing seems to work.

Here is what i am using currently as far as patches:

"drupal/paragraphs": {
            "2901390: Integrity constraint violation.": "patches/paragraphs-set_langcode_widgets-290139_updated.patch",
            "2925533: Unavailable to add/edit paragraphs on adding translation.": "patches/paragraphs-translation_paragraph_issue-2925533-2.patch",
            "3090200: Paragraphs do not render: access check for view fails when using layout builder.": "patches/incorrect-parent-revision-id-passed-in-ParagraphAccessControlHandler-3090200-17.patch"
          },

This issue looks like what I am experiencing: https://www.drupal.org/project/paragraphs/issues/3090200

But even after applying the suggested patch, I still see the issue. Does anyone happen to be using this same combination of modules? Drupal with Paragraphs in custom inline blocks in Layout Builder with content moderation and translations? If so, what combinations of patches and module versions are working for you?

THANKS!

Comments

erich93063 created an issue.

Luke_Nuke’s picture

I'm in the same spot but I'm not using Content Moderation module and and I'm using symmetric translations, problem is the same though. This is actually a very common scenario not an edge case. If you want to have website translated + you want to put content in layouts + this content is complex enough so you use paragraphs like everywhere else = you are hitting a wall.

SoCalErich’s picture

So for me, I ONLY see the issue once I enable Content Moderation. Without Content Moderation in the mix, everything works perfect. I can create pages that use Layout Builder and place blocks in the layout that use Paragraphs. I can save the page and then edit the page and the Paragraphs just fine. I can then translate the page just fine and edit that translated page including the Paragraphs without issue. I only see the issue once I introduce Content Moderation and then place a page in Draft status after already being published. If I edit a Paragraph and place the page in Draft Status and then try to come back to the same page and edit the Paragraph field, it wont let me. If I PUBLISH that same page, THEN I can go back in and edit the Paragraph again.

I am using Layout Builder Asymmetric Translation, not Layout Builder Symmetric Translations. I don't know if that helps you with your problem. This enables me to have separate layouts for each translation and it's working great.

jerdavis’s picture

Did either of you make any progress with this issue? We've just run into the same problem on a build using Layout Builder, Custom Blocks, Paragraphs, Language translation and Content Moderation.

aluzzardi’s picture

I just hit this issue too, but I don't even have translations enabled, only content moderation, so maybe the problem here is the content moderation

jerdavis’s picture

I added the following patches yesterday which seems to be sorting us out for now on 9.0.7.

drupal/paragraphs: https://www.drupal.org/files/issues/2020-07-08/access-controll-issue-309...
drupal/core: https://www.drupal.org/files/issues/2020-09-10/3047022-43.patch

smustgrave’s picture

Should this be marked as a duplicate of https://www.drupal.org/project/paragraphs/issues/3090200 ?