Skip to content

Instantly share code, notes, and snippets.

@gustaflindqvist
Created September 21, 2012 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustaflindqvist/3760397 to your computer and use it in GitHub Desktop.
Save gustaflindqvist/3760397 to your computer and use it in GitHub Desktop.
#if ( $is_signed_in && ($permissionChecker.isOmniadmin() ) )
$theme.include($top_head_include)
#else
<script type="text/javascript">
// hack catching exceptions
Liferay = function() {return {};}();
Liferay.Portlet = {
isAjax: function(id) {return true;},
process: function(id) {}
};
Liferay.Session = {init: function(params) {}};
</script>
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment