*** UserServiceImpl.java.orig Tue Jun 12 14:07:40 2007 --- UserServiceImpl.java Tue Jun 12 13:58:10 2007 *************** *** 316,321 **** --- 316,322 ---- protected void checkPermission(String userId, String actionId) throws PortalException, SystemException { + userId = userId.trim().toLowerCase(); User user = UserUtil.findByPrimaryKey(userId); checkPermission( *************** *** 328,333 **** --- 329,335 ---- String actionId) throws PortalException, SystemException { + userId = userId.trim().toLowerCase(); UserPermission.check( getPermissionChecker(), userId, organizationId, locationId, actionId); *************** *** 349,355 **** User user = getUser(); if ((userIds.length == 1) && ! (user.getUserId().equals(userIds[0]))) { Group group = GroupLocalServiceUtil.getGroup(groupId); --- 351,357 ---- User user = getUser(); if ((userIds.length == 1) && ! (user.getUserId().equals(userIds[0].trim().toLowerCase()))) { Group group = GroupLocalServiceUtil.getGroup(groupId);