Skip to content

Commit

Permalink
Update server/impl/src/main/java/com/walmartlabs/concord/server/user/…
Browse files Browse the repository at this point in the history
…UserResourceV2.java

Co-authored-by: Yury Brigadirenko <[email protected]>
  • Loading branch information
laurayco and brig authored Nov 14, 2024
1 parent e23952d commit ef30bd3
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,6 @@ public List<UserEntry> list(@QueryParam("offset") @DefaultValue("0") int offset,
return userDao.list(filter, offset, limit);
}


/*
throws unauthorized exception if user is not an admin,
copied from UserResource.java
*/
private static void assertAdmin() {
if (!Roles.isAdmin()) {
throw new UnauthorizedException("Only admins can do that");
}
}

@GET
@Path("/{id}")
@Produces(MediaType.APPLICATION_JSON)
Expand Down

0 comments on commit ef30bd3

Please sign in to comment.