Skip to content

Commit

Permalink
Merge pull request #105 from AlexaCRM/twigUsePrivileges
Browse files Browse the repository at this point in the history
add ICDS_TWIG_USE_PRIVILEGES and ICDS_TWIG_SUPPRESS_ERRORS description
  • Loading branch information
georged authored Jan 8, 2025
2 parents 6ea0ad4 + 2821f4c commit 22f75bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion datapress/administration/disable-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,10 @@ Also if you set the Login Enabled column as 'Yes' for the user, this user will b

[Users API documentation](/knowledge-base/manage-users)

:::
:::

:::tip

Use the `ICDS_TWIG_USE_PRIVILEGES` flag to prevent editors and contributors from editing pages that access Dataverse data using twig code including but not limited to `view` and `fetchxml` tags. Existing page view permissions are preserved.

:::
4 changes: 4 additions & 0 deletions datapress/administration/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ Here are some of the key flags:
- `ICDS_DISABLE_MONACO` - When editing page content, `Dataverse Twig` block uses the Monaco editor that provides syntax highlighting and intellisense. If `ICDS_DISABLE_MONACO` flag is set to true, the Monaco editor will be disabled and the plain text editor will be used instead.

- `ICDS_TWIG_DEBUG` - When this flag is not set, Twig compile and runtime errors generate a short error message with the details available in the logs. When this flag is set, detailed error information is generated in the output. In addition, the `dump()` Twig function can be used to display object content, for example `{{ dump(contact) }}`.

- `ICDS_TWIG_USE_PRIVILEGES`- Use this flag to prevent editors and contributors from editing pages that access Dataverse data using twig code including but not limited to `view` and `fetchxml` tags. Existing page view permissions are preserved.

- `ICDS_TWIG_SUPPRESS_ERRORS` - If this flag is set to true, twig templates failing to compile or generating runtime errors will produce empty output.

0 comments on commit 22f75bb

Please sign in to comment.