Code: Select all
<xsl:choose>
<xsl:when test="$S_USER_LOGGED_IN and not($S_IS_BOT)">
<div>
<xsl:attribute name="class">
hidden-content
</xsl:attribute>
<div style="color: #4C5D77; font-weight: bold; margin-bottom: 5px;">{L_HIDDEN_CONTENT_TITLE}</div>{TEXT}
</div>
</xsl:when>
<xsl:otherwise>
<div>
<xsl:attribute name="class">
hidden-content-error
</xsl:attribute>
{L_HIDDEN_CONTENT_EXPLAIN}
</div>
</xsl:otherwise>
</xsl:choose>
Code: Select all
<xsl:when test="$S_USER_LOGGED_IN and not($S_IS_BOT)">
But keeping in mind they would be in two groups (members group and restricted group), and not setting the restricted group as their "main group". Members group still remains set as their main group - but they get restricted because the restricted group uses some never permissions with it.
So the permission added extra in the code has to cover if a person is stuck in group 17 (not set as their main group). That it will still work