Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Handlebars lets you build semantic templates effectively. Handlebars helpers can be accessed from any context in a template. The ES permission model includes two Handlebars helpers that can be used to query permissions of a logged in user when rendering the UI element of a page.

  • hasAssetPermission

    For more information on the hasAssetPermission method, see hasAssetPermission.

    Example:

    {{#hasAssetPermission key=”ASSET_CREATE” type=gadget username=”admin” tenantId=”-1234” }}
    	<div>Secured</div>
    {{/hasAssetPermission}}
  • hasAppPermission

    For more information on the hasAssetPermission method, see hasAppPermission.

    Example:

    {{#hasAppPermission key=”ASSET_CREATE” username=”admin” tenantId=”-1234” }}
    	<div> Secured </div>
    {{/hasAppPermission}}
  • No labels