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

canRead (target : xlink) : boolean

The method “canRead” checks whether the logged-in user has the authorization to view the specified element.

If the user is allowed to read the element, 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:canRead(c.id())" />
<xsl:value-of select="user:logout()" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Rights check: Reading document