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)