Documentation >> Conditionals >> users >> userIsConvAdmin
Conditional Macro: userIsConvAdmin
Operators:
Usage Notes
- This is a unary macro, it doesn't work with any standard |conditional operator|.
- In a web page, this macro will evaluate to true if the current user is an admin on of the site, and is logged in. Otherwise, it returns false.
- In email, this is how it works:
- If the site is in Single-Subscriber mode (using a mailing list), then it will always return false because the single email is being sent to all subscribers.
- If the site is in Multi-Subscriber mode, then it will behave exactly like it does when being used in a web page. That is, if the person receiving the message is an admin for the site that's sending the message, it returns true. If the person receiving the message is not an admin, it returns false.
Examples
This example would show line 1 to Conversation Admins (of this site), and line 2 to everyone else.
<!--#if condition="userIsConvAdmin"-->
1. Your are a manager of this site, and can see this line.
<!--#else-->
2. You're not a manager of this site, or you haven't logged in, so this is what you see.
<!--#endIf-->
See the above code in action, here:
2. You're not a manager of this site, or you haven't logged in, so this is what you see.
View in DG
|