http://onionworks.net/2006/data/personalization

canDeleteChildren (target : xlink) : boolean

The method “canDeleteChildren” checks whether the logged-in user has the authorization to delete the child elements of the specified element.

If the user is allowed to delete the child elements, then “true” is returned.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:user="http://onionworks.net/2006/data/personalization" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
<xsl:if test="user:login('testuser', 'test')">
<xsl:value-of select="user:canDeleteChildren(c.id())" />
<xsl:value-of select="user:logout()" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Rights check: Deleting child elements