Skip to content

Commit

Permalink
Merge branch 'fix-manually-deleting-aai-users' of JulianKniephoff/ope…
Browse files Browse the repository at this point in the history
…ncast into r/14.x

Pull request opencast#5756
Fixes opencast#5753
  Fix deleting user references from the admin UI
  • Loading branch information
gregorydlogan committed May 1, 2024
2 parents 88321e0 + ee32271 commit e8a4591
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ public void setSecurityService(SecurityService securityService) {
this.securityService = securityService;
}

/**
* @param jpaUserReferenceProvider
* the user provider to set
*/
@Reference
public void setJpaUserReferenceProvider(JpaUserReferenceProvider jpaUserReferenceProvider) {
this.jpaUserReferenceProvider = jpaUserReferenceProvider;
}

/**
* @param jpaUserAndRoleProvider
* the user provider to set
Expand Down Expand Up @@ -439,7 +448,7 @@ public Response deleteUser(@PathParam("username") String username) throws NotFou

try {
try {
jpaUserAndRoleProvider.deleteUser(username, organization.getId());
jpaUserReferenceProvider.deleteUser(username, organization.getId());
} catch (NotFoundException e) {
userReferenceNotFound = true;
}
Expand Down

0 comments on commit e8a4591

Please sign in to comment.