diff --git a/java/google/registry/ui/server/registrar/ConsoleUiAction.java b/java/google/registry/ui/server/registrar/ConsoleUiAction.java index 56842985a..be45d805a 100644 --- a/java/google/registry/ui/server/registrar/ConsoleUiAction.java +++ b/java/google/registry/ui/server/registrar/ConsoleUiAction.java @@ -16,8 +16,6 @@ package google.registry.ui.server.registrar; import static com.google.common.net.HttpHeaders.LOCATION; import static com.google.common.net.HttpHeaders.X_FRAME_OPTIONS; -import static google.registry.ui.server.registrar.AuthenticatedRegistrarAccessor.Role.ADMIN; -import static google.registry.ui.server.registrar.AuthenticatedRegistrarAccessor.Role.OWNER; import static google.registry.ui.server.registrar.RegistrarConsoleModule.PARAM_CLIENT_ID; import static javax.servlet.http.HttpServletResponse.SC_FORBIDDEN; import static javax.servlet.http.HttpServletResponse.SC_MOVED_TEMPORARILY; @@ -28,7 +26,6 @@ import com.google.appengine.api.users.UserService; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Supplier; import com.google.common.collect.ImmutableSetMultimap; -import com.google.common.collect.Sets; import com.google.common.flogger.FluentLogger; import com.google.common.io.Resources; import com.google.common.net.MediaType; @@ -136,12 +133,7 @@ public final class ConsoleUiAction implements Runnable { data.put("logoutUrl", userService.createLogoutURL(PATH)); data.put("xsrfToken", xsrfTokenManager.generateToken(user.getEmail())); ImmutableSetMultimap roleMap = registrarAccessor.getAllClientIdWithRoles(); - ImmutableSetMultimap roleMapInverse = roleMap.inverse(); - // TODO(guyben):just return all the clientIDs in a single list, and add an "isAdmin" or "roles" - // item - data.put("ownerClientIds", roleMapInverse.get(OWNER)); - data.put( - "adminClientIds", Sets.difference(roleMapInverse.get(ADMIN), roleMapInverse.get(OWNER))); + data.put("allClientIds", roleMap.keySet()); // We set the initual value to the value that will show if guessClientId throws. String clientId = ""; try { diff --git a/java/google/registry/ui/soy/registrar/Console.soy b/java/google/registry/ui/soy/registrar/Console.soy index 0c5445327..65ef43d21 100644 --- a/java/google/registry/ui/soy/registrar/Console.soy +++ b/java/google/registry/ui/soy/registrar/Console.soy @@ -23,8 +23,7 @@ {template .main} {@param xsrfToken: string} /** Security token. */ {@param clientId: string} /** Registrar client identifier. */ - {@param ownerClientIds: list} - {@param adminClientIds: list} + {@param allClientIds: list} /** All registrar client identifiers for the user. */ {@param username: string} /** Arbitrary username to display. */ {@param logoutUrl: string} /** Generated URL for logging out of Google. */ {@param productName: string} /** Name to display for this software product. */ @@ -78,8 +77,7 @@ /** Sidebar nav. Ids on each elt for testing only. */ {template .navbar_ visibility="private"} {@param clientId: string} /** Registrar client identifier. */ - {@param ownerClientIds: list} - {@param adminClientIds: list} + {@param allClientIds: list}