From 0e86ce9638f17cf801b6dbf08e6dfd91edf89153 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Fri, 18 Feb 2022 18:56:39 -0300 Subject: [PATCH] 17754: Avoids presenting account linking options whe LoginCluster is set. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- .../link-account-panel/link-account-panel-root.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/views/link-account-panel/link-account-panel-root.tsx b/src/views/link-account-panel/link-account-panel-root.tsx index 9dc28d66..490e47dc 100644 --- a/src/views/link-account-panel/link-account-panel-root.tsx +++ b/src/views/link-account-panel/link-account-panel-root.tsx @@ -73,6 +73,18 @@ type LinkAccountPanelRootProps = LinkAccountPanelRootDataProps & LinkAccountPane export const LinkAccountPanelRoot = withStyles(styles)( ({ classes, targetUser, userToLink, status, isProcessing, error, startLinking, cancelLinking, linkAccount, remoteHostsConfig, hasRemoteHosts, selectedCluster, setSelectedCluster, localCluster, loginCluster }: LinkAccountPanelRootProps) => { + + // If a LoginFederation is configured, the self-serve account linking is not + // currently available. + if (loginCluster !== "") { + return + + + If you would like to link this account to another one, please contact your administrator. + + + ; + } return { isProcessing && -- 2.30.2