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

canCreateChild (parent : string) : boolean

The method “canCreateChild” checks whether the logged-in user has the authorization to create elements below the specified element.

If the user is allowed to create 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:canCreateChild(c.id())" />
<xsl:value-of select="user:logout()" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Rights check: Creating child elements