Skip to content

Instantly share code, notes, and snippets.

@nshaw
Created December 20, 2013 16:23
Show Gist options
  • Save nshaw/8057260 to your computer and use it in GitHub Desktop.
Save nshaw/8057260 to your computer and use it in GitHub Desktop.
#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