Skip to content

Commit

Permalink
Merge pull request #5071 from PasinduYeshan/fix/rolev2
Browse files Browse the repository at this point in the history
Fix shared shared v2 role display name update issue
  • Loading branch information
dewniMW authored Oct 26, 2023
2 parents 622bf35 + 2b7d24a commit 20ec4f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public static class RoleTableColumns {
public static final String UM_MAIN_ROLE_TENANT_ID = "UM_MAIN_ROLE_TENANT_ID";
public static final String UM_GROUP_ID = "UM_GROUP_ID";
public static final String GROUP_NAME = "GROUP_NAME";
public static final String ID = "ID";

public static final String NEW_ROLE_NAME = "NEW_ROLE_NAME";
public static final String USER_NOT_FOUND_ERROR_MESSAGE = "A user doesn't exist with name: %s " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ private void updateSharedSCIMRolesName(List<RoleDTO> sharedRoles, String newRole

for (RoleDTO roleDTO : sharedRoles) {
try (NamedPreparedStatement statement = new NamedPreparedStatement(connection, UPDATE_SCIM_ROLE_NAME_SQL,
RoleConstants.RoleTableColumns.UM_ID)) {
RoleConstants.RoleTableColumns.ID)) {
statement.setString(RoleConstants.RoleTableColumns.NEW_ROLE_NAME, newRoleName);
statement.setInt(RoleConstants.RoleTableColumns.TENANT_ID, roleDTO.getTenantId());
statement.setString(ROLE_NAME, roleDTO.getName());
Expand Down

0 comments on commit 20ec4f1

Please sign in to comment.