Global:Page.IsCurrentUserAllowed

Version: - string  

Summary

Returns True if the current user has access to the page.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Global:Page.IsCurrentUserAllowed")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Global:Page.IsCurrentUserAllowed"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Global:Page.IsCurrentUserAllowed"); }

Outputting the template tag

<!--@Global:Page.IsCurrentUserAllowed-->

Check if string has a value

<!--@If Defined(@Global:Page.IsCurrentUserAllowed)--> Let's output this tag here: <strong><!--@Global:Page.IsCurrentUserAllowed--></strong> <!--@EndIf(@Global:Page.IsCurrentUserAllowed)-->