Allow restricting access to paragraphs by providing a separate layout_paragraphs layout with an entity_access_by_role_field field.

Comments

Anybody created an issue. See original summary.

  • Anybody committed e428036 on 4.x
    Issue #3267196 by Anybody: Add restricted access layout paragraph...
anybody’s picture

Status: Active » Needs review

  • Anybody committed 9216352 on 4.x
    Issue #3267196 by Anybody: Add restricted access layout paragraph...

  • Anybody committed 5e346fe on 4.x
    Issue #3267196 by Anybody: Add restricted access layout paragraph...

  • Anybody committed ce90fe8 on 4.x
    Issue #3267196 by Anybody: Add restricted access layout paragraph...

  • Anybody committed 4998be8 on 4.x
    Issue #3267196 by Anybody: Add restricted access layout paragraph...
  • Anybody committed 5df7462 on 4.x
    Issue #3267196 by Anybody: Add restricted access layout paragraph...
  • Anybody committed df09d56 on 4.x
    Issue #3267196 by Anybody: Add restricted access layout paragraph...
anybody’s picture

Status: Needs review » Fixed

  • Anybody committed 70fea6b on 4.x
    Issue #3267196 by Anybody: Add restricted access layout paragraph...
anybody’s picture

Assigned: Unassigned » thomas.frobieter
Status: Fixed » Needs work

@thomas.frobieter could you perhaps add a library and a css style to this paragraph type in the admin area? (like perhaps in other paragraph types / submodules?) to indicate that the layout has restricted access?

Something like a light yellow and if simply possible a lock symbol?

Classes of this layout are:
"js-lpb-component is_new lpb-layout pt-lg pb-lg paragraph paragraph--type-layout-restricted-access paragraph--view-mode--preview"

Then hovering the layout, you can see the type, so then it's no problem.

Can be tested on DEMO. This can be closed fixed afterwards.

anybody’s picture

@thomas.frobieter could you please check if we solved #10 somehow and this can be closed? Perhaps we forget to close it or we forgot to finish that part?

anybody’s picture

Title: Add restricted access layout paragraph submodule » Add restricted access layout paragraph submodule styling / indcator
Project: DROWL Paragraphs » DROWL Paragraphs for Bootstrap
Version: 4.x-dev » 1.x-dev
Category: Feature request » Task

Moved over to _bs. If relevant, the improvements might be copied over to drowl_paragraphs.