Login  Register

Re: Remove "Send Email" option with NAML

Posted by mark on Jan 04, 2020; 2:04pm
URL: https://support.nabble.com/Remove-Send-Email-option-with-NAML-tp7591364p7604789.html

EDIT: Nevermind this reply (the code snippets don't work; still figuring NAML out). See my reply to it for an example that works for me.

I have to go, but maybe you can test make a macro (similar to the is_site_admin macro) with code similar to this (not sure if this code is functional, yet):

<macro name="is_x" requires="user">
    <condition1.is_in_group group="[n.x_group/]" />
</macro> 

x is the name of the group.

Or maybe just not make a macro and use

<n.if.visitor.is_in_group group="[n.x_group/]">
…
</n.if.visitor.is_in_group group="[n.x_group/]">

I haven't tested that.