Created
December 30, 2012 14:47
-
-
Save rhysgodfrey/4413111 to your computer and use it in GitHub Desktop.
Telligent Enterprise Simple Redirect to Login Scripted Content Fragment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set($urlName = $core_v2_urls.Current) | |
#set($isRegistered = $core_v2_user.IsRegistered($core_v2_user.Accessing.Id)) | |
## List of pages anonymous users are allowed to access | |
#set($allowedPages = [ "LogIn", "LogOut", "Message", "GetForgottenPassword", "AddUser" ]) | |
#if(!$isRegistered && !$allowedPages.Contains($urlName)) | |
$core_v2_page.Redirect($core_v2_urls.LogIn()) | |
#end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment