ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute(
WebKeys.THEME_DISPLAY);
long roleId = ParamUtil.getLong(request, "roleId");
Role role = null;
Group group = (Group)request.getAttribute(WebKeys.GROUP);
<BUG>if (group.isCommunity()) {
if (UserGroupRoleLocalServiceUtil.hasUserGroupRole(</BUG>
themeDisplay.getUserId(), group.getGroupId(),
RoleConstants.COMMUNITY_ADMINISTRATOR, true) ||
UserGroupRoleLocalServiceUtil.hasUserGroupRole(

ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute(
WebKeys.THEME_DISPLAY);
long roleId = ParamUtil.getLong(request, "roleId");
Role role = null;
Group group = (Group)request.getAttribute(WebKeys.GROUP);
if ((group != null) && group.isCommunity()) {
if (UserGroupRoleLocalServiceUtil.hasUserGroupRole(
themeDisplay.getUserId(), group.getGroupId(),
RoleConstants.COMMUNITY_ADMINISTRATOR, true) ||
UserGroupRoleLocalServiceUtil.hasUserGroupRole(
