clearRight (groupReference : xlink, target : xlink) : boolean

The method "clearRight()" removes an object right from the group specified in the parameter “groupReference”.

The group XLink is specified as a parameter as well as the ID of the document to be deleted from the group.

The web application user must be the user administrator in order to execute this method.

<xsl:stylesheet xmlns:app="" xmlns:xsl="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:variable name="id" select="'onion://data/objects/123'" />
<xsl:variable name="group" select="'onion://usermanagement/groups/123'" />
<xsl:if test="app:clearRight($group, $id)">
<xsl:value-of select="concat('The rights for the document with the ID ', $id, ' were removed from the group »testgroup«.')" />
Removing rights.