Problem/Motivation

Even though Twig is considered relatively secure, it is possible to access entity data using Twig functions include in the Twig Tweak module. Users should not be able to edit inline Twig templates in the WebformComputedTwig element and WebformEmailHandler with being granted permission.

Proposed resolution

Add 'edit webform twig' permission.

Comments

jrockowitz created an issue. See original summary.

  • jrockowitz committed 61c75ac on 2932671-twig-permission
    Issue #2932671: Add 'edit webform twig' permission
    
jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new4.46 KB
jrockowitz’s picture

StatusFileSize
new11.24 KB
jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz committed e764473 on 8.x-5.x
    Issue #2932671 by jrockowitz: Add 'edit webform twig' permission
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.