Skip to content

Commit

Permalink
remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
klaus-sap committed Nov 20, 2023
1 parent ec56ea6 commit ef8f6ca
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public Logger getLogger() {

private JdbcScimGroupExternalMembershipManager jdbcScimGroupExternalMembershipManager;
private JdbcScimGroupMembershipManager jdbcScimGroupMembershipManager;
private JdbcIdentityZoneProvisioning jdbcIdentityZoneProvisioning;

public JdbcScimGroupProvisioning(
final JdbcTemplate jdbcTemplate,
Expand All @@ -78,7 +77,6 @@ public JdbcScimGroupProvisioning(
super(jdbcTemplate, pagingListFactory, new ScimGroupRowMapper());

this.jdbcTemplate = jdbcTemplate;
jdbcIdentityZoneProvisioning = new JdbcIdentityZoneProvisioning(jdbcTemplate); // TODO inject

final String quotedGroupsTableName = dbUtils.getQuotedIdentifier(GROUP_TABLE, jdbcTemplate);
updateGroupSql = String.format(
Expand Down Expand Up @@ -233,6 +231,7 @@ private List<String> getAllowedUserGroups(String zoneId) {
return zoneAllowedGroups;
}
IdentityZone currentZone = IdentityZoneHolder.get();
JdbcIdentityZoneProvisioning jdbcIdentityZoneProvisioning = new JdbcIdentityZoneProvisioning(jdbcTemplate);
try {
zoneAllowedGroups = (zoneId.equals(currentZone.getId())) ?
currentZone.getConfig().getUserConfig().getAllowedGroups() :
Expand Down

0 comments on commit ef8f6ca

Please sign in to comment.