You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

is_allowed()

Usage

is_allowed(principal, node, permissions)

Description
Returns a boolean value indicating the presence of the given permissions on the given node for the given principal. Valid values for the permission list are read, write, delete and accessControl. The permissions are passed in as a comma-separated list (see the examples below). See also grant() and revoke().

Example

${is_allowed(me, group1, 'read')}
${is_allowed(me, group2, 'write')}
${is_allowed(me, group2, 'read, write')}
${is_allowed(me, group2, 'read, write, delete')}

Search results for "is_allowed()"

is_allowed()

Returns a boolean value indicating the presence of the given permissions on the given node for the given principal. Valid values for the permission list are read, write, delete and accessControl. The permissions are passed in as a comma-separated list (see the examples below). See also grant() and revoke().

is_allowed(principal, node, permissions)