From ef30bd3fc77cc7526cc88c390316ffe278c73aac Mon Sep 17 00:00:00 2001 From: Lauren Connors Date: Thu, 14 Nov 2024 16:50:56 -0600 Subject: [PATCH] Update server/impl/src/main/java/com/walmartlabs/concord/server/user/UserResourceV2.java Co-authored-by: Yury Brigadirenko --- .../concord/server/user/UserResourceV2.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/server/impl/src/main/java/com/walmartlabs/concord/server/user/UserResourceV2.java b/server/impl/src/main/java/com/walmartlabs/concord/server/user/UserResourceV2.java index d0c27980ca..39ab4e1d7c 100644 --- a/server/impl/src/main/java/com/walmartlabs/concord/server/user/UserResourceV2.java +++ b/server/impl/src/main/java/com/walmartlabs/concord/server/user/UserResourceV2.java @@ -69,17 +69,6 @@ public List 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)