Free-Conversant Support / Conditional Macro: userIsServerAdmin
 Home   About Conversant   Free Sites   Hosting   Support   XML-RPC 

Search



Documentation >> Conditionals >> users >> userIsServerAdmin

Conditional Macro: userIsServerAdmin

Operators:

  • no 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 server that the site is running on, 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 server that contains the site that's sending the message, it returns true. If the person receiving the message is not a server admin, it returns false.

  • Server admins are very powerful. All hail the server admin!

Examples

This example would show line 1 to Server Admins (of this site), and line 2 to everyone else.

<!--#if condition="userIsServerAdmin"-->

1. Your are a manager of this server, and can see this line.

<!--#else-->

2. You're not a manager of this server, 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 server, or you haven't logged in, so this is what you see.
View in DG