diff --git a/packages/builder/src/pages/builder/portal/users/users/_components/RemoveGroupTableRenderer.svelte b/packages/builder/src/pages/builder/portal/users/users/_components/RemoveGroupTableRenderer.svelte index df25ae7d30..dcbf2d3724 100644 --- a/packages/builder/src/pages/builder/portal/users/users/_components/RemoveGroupTableRenderer.svelte +++ b/packages/builder/src/pages/builder/portal/users/users/_components/RemoveGroupTableRenderer.svelte @@ -5,6 +5,7 @@ import { sdk } from "@budibase/shared-core" export let value + export let row const groupContext = getContext("groups") @@ -12,12 +13,11 @@ e.stopPropagation() groupContext.removeGroup(value) } + + $: disabled = !sdk.users.isAdmin($auth.user) || row?.scimInfo?.isSync + $: tooltip = row?.scimInfo?.isSync && "User added to the group via your AD" -Remove - Remove -