Allow editing non-scim

This commit is contained in:
Adria Navarro 2024-02-26 10:49:06 +01:00
parent a91c08a56c
commit 6058e4ffc9
3 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
import { Breadcrumb, Breadcrumbs } from "components/portal/page"
import { roles } from "stores/builder"
import { apps, auth, features, groups } from "stores/portal"
import { apps, auth, groups } from "stores/portal"
import { onMount, setContext } from "svelte"
import AppNameTableRenderer from "../users/_components/AppNameTableRenderer.svelte"
import AppRoleTableRenderer from "../users/_components/AppRoleTableRenderer.svelte"

View File

@ -30,8 +30,8 @@
import GroupNameTableRenderer from "../groups/_components/GroupNameTableRenderer.svelte"
import AppNameTableRenderer from "./_components/AppNameTableRenderer.svelte"
import AppRoleTableRenderer from "./_components/AppRoleTableRenderer.svelte"
import ScimBanner from "../_components/SCIMBanner.svelte"
import { sdk } from "@budibase/shared-core"
import ScimInfo from "../_components/SCIMInfo.svelte"
export let userId
@ -89,7 +89,7 @@
$: scimEnabled = $features.isScimEnabled
$: isSSO = !!user?.provider
$: readonly = !sdk.users.isAdmin($auth.user) || scimEnabled
$: readonly = !sdk.users.isAdmin($auth.user) || user?.scimInfo?.isSync
$: privileged = sdk.users.isAdminOrGlobalBuilder(user)
$: nameLabel = getNameLabel(user)
$: filteredGroups = getFilteredGroups($groups, searchTerm)
@ -274,8 +274,8 @@
<Layout noPadding gap="S">
<div class="details-title">
<Heading size="S">Details</Heading>
{#if scimEnabled}
<ScimBanner />
{#if user?.scimInfo?.isSync}
<ScimInfo text="User synced externally" />
{/if}
</div>
<div class="fields">

View File

@ -28,6 +28,7 @@
import GroupsTableRenderer from "./_components/GroupsTableRenderer.svelte"
import AppsTableRenderer from "./_components/AppsTableRenderer.svelte"
import RoleTableRenderer from "./_components/RoleTableRenderer.svelte"
import EmailTableRenderer from "./_components/EmailTableRenderer.svelte"
import { goto } from "@roxi/routify"
import OnboardingTypeModal from "./_components/OnboardingTypeModal.svelte"
import PasswordModal from "./_components/PasswordModal.svelte"
@ -39,7 +40,6 @@
import { OnboardingType } from "constants"
import ScimInfo from "../_components/SCIMInfo.svelte"
import { sdk } from "@budibase/shared-core"
import EmailTableRenderer from "./_components/EmailTableRenderer.svelte"
const fetch = fetchData({
API,