Reading what you expect - you seem to expect *only* the node the member has access to (but maybe forgetting that he has anonymous access to the others - or am I not getting this right?)
Try combining with IsProtected() so you're only counting the protected nodes that the member has access to:
<xsl:variable name="accessibleNodes" select="count(*[@isDoc][umbraco.library:IsProtected(@id, @path) and umbraco.library:HasAccess(@id, @path)])" />
Count accessible subnodes
Im trying to count protected subnodes which are accessible to a given member.
Returns alle nodes, not just the one accessible to the member...
How do i count only the ones acceesible?
Hi Claus,
Reading what you expect - you seem to expect *only* the node the member has access to (but maybe forgetting that he has anonymous access to the others - or am I not getting this right?)
Try combining with IsProtected() so you're only counting the protected nodes that the member has access to:
/Chriztian
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.