diff --git a/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte b/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte
index 8019c567a2..d60d878602 100644
--- a/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte
+++ b/packages/builder/src/pages/builder/portal/manage/users/[userId].svelte
@@ -42,18 +42,13 @@
let allAppList = []
let user
let loaded = false
- $: fetchUser(userId)
+ $: fetchUser(userId)
$: fullName = $userFetch?.data?.firstName
? $userFetch?.data?.firstName + " " + $userFetch?.data?.lastName
: ""
-
- $: hasGroupsLicense = $auth.user?.license.features.includes(
- Constants.Features.USER_GROUPS
- )
$: nameLabel = getNameLabel($userFetch)
$: initials = getInitials(nameLabel)
-
$: allAppList = $apps
.filter(x => {
if ($userFetch.data?.roles) {
@@ -86,7 +81,6 @@
return y._id === userId
})
})
-
$: globalRole = $userFetch?.data?.admin?.global
? "admin"
: $userFetch?.data?.builder?.global
@@ -290,7 +284,7 @@
- {#if hasGroupsLicense}
+ {#if $auth.groupsEnabled}
diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte
index 184ff13eaf..e86943c106 100644
--- a/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte
+++ b/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte
@@ -18,9 +18,6 @@
let disabled
let userGroups = []
- $: hasGroupsLicense = $auth.user?.license.features.includes(
- Constants.Features.USER_GROUPS
- )
$: userData = [
{
email: "",
@@ -112,7 +109,7 @@
- {#if hasGroupsLicense}
+ {#if $auth.groupsEnabled}
{
if ($admin.cloud && userEmails.length > MAX_USERS_UPLOAD_LIMIT) {
@@ -95,7 +92,7 @@
options={Constants.BuilderRoleDescriptions}
/>
- {#if hasGroupsLicense}
+ {#if $auth.groupsEnabled}
{
userData = await removingDuplicities(addUsersData)
if (!userData?.users?.length) return
diff --git a/packages/builder/src/pages/builder/portal/overview/_components/AccessTab.svelte b/packages/builder/src/pages/builder/portal/overview/_components/AccessTab.svelte
index 565dfc7aa2..5e327a8743 100644
--- a/packages/builder/src/pages/builder/portal/overview/_components/AccessTab.svelte
+++ b/packages/builder/src/pages/builder/portal/overview/_components/AccessTab.svelte
@@ -17,10 +17,10 @@
import { users, groups, apps, auth } from "stores/portal"
import AssignmentModal from "./AssignmentModal.svelte"
import { createPaginationStore } from "helpers/pagination"
- import { Constants } from "@budibase/frontend-core"
import { roles } from "stores/backend"
export let app
+
let assignmentModal
let appGroups = []
let appUsers = []
@@ -28,14 +28,9 @@
search = undefined
let pageInfo = createPaginationStore()
let fixedAppId
+
$: page = $pageInfo.page
-
- $: hasGroupsLicense = $auth.user?.license.features.includes(
- Constants.Features.USER_GROUPS
- )
-
$: fixedAppId = apps.getProdAppID(app.devId)
-
$: appGroups = $groups.filter(x => {
return x.apps.includes(app.appId)
})
@@ -161,7 +156,7 @@
>