Created
December 20, 2013 16:23
-
-
Save nshaw/8057260 to your computer and use it in GitHub Desktop.
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 ($defaultSiteName = "ABC") | |
#set ($group = $groupLocalService.getGroup($company_id, $defaultSiteName)) | |
#set ($isSiteAdmin = ($userGroupRoleLocalService.hasUserGroupRole($user_id, $group.getGroupId(),"Site Administrator", true))) | |
#set ($isAbcSupport = ($roleLocalService.hasUserRole($user_id, $company_id, "ABC Support", true))) | |
#set($isAbcAdmin = ($roleLocalService.hasUserRole($user_id, $company_id, "ABC Admin", true))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment