UserManagement:User.AllowBackend

Version: - boolean  

Summary

Returns the value "True" if the user is allowed backend login.

Settings

The value is based on the Allow backend login field for a user.

(User Management > User > User tab > Settings section > Allow backend login)

Examples

Outputting the template tag

@GetBoolean("UserManagement:User.AllowBackend")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("UserManagement:User.AllowBackend"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("UserManagement:User.AllowBackend"); }

Outputting the template tag

<!--@UserManagement:User.AllowBackend-->

Check if boolean has a value

<!--@If Defined(@UserManagement:User.AllowBackend)--> Let's output this tag here: <strong><!--@UserManagement:User.AllowBackend--></strong> <!--@EndIf(@UserManagement:User.AllowBackend)-->