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.

revoke()

Usage

revoke(principal, node, permissions)

Description
Revokes the given permissions on the given node from the given principal. This method modifies the security relationship between the first two parameters. 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). The return value is the empty string. See also grant() and is_allowed().

Example

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

Search results for "revoke()"

revoke()

Revokes the given permissions on the given node from the given principal. This method modifies the security relationship between the first two parameters. 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). The return value is the empty string. See also grant() and is_allowed().

revoke(principal, node, permissions)