diff --git a/packages/builder/src/pages/builder/portal/_layout.svelte b/packages/builder/src/pages/builder/portal/_layout.svelte index 17209b1786..26409ef695 100644 --- a/packages/builder/src/pages/builder/portal/_layout.svelte +++ b/packages/builder/src/pages/builder/portal/_layout.svelte @@ -53,10 +53,6 @@ href: "/builder/portal/manage/users", heading: "Manage", }, - isEnabled(FEATURE_FLAGS.USER_GROUPS) && { - title: "User Groups", - href: "/builder/portal/manage/groups", - }, { title: "Auth", href: "/builder/portal/manage/auth" }, { title: "Email", href: "/builder/portal/manage/email" }, { @@ -70,6 +66,15 @@ }, ]) + if (isEnabled(FEATURE_FLAGS.USER_GROUPS)) { + let item = { + title: "User Groups", + href: "/builder/portal/manage/groups", + } + + menu.splice(1, 0, item) + } + if (!$adminStore.cloud) { menu = menu.concat([ { diff --git a/packages/worker/src/sdk/users/users.ts b/packages/worker/src/sdk/users/users.ts index 17d5ec1767..ea7f2517e0 100644 --- a/packages/worker/src/sdk/users/users.ts +++ b/packages/worker/src/sdk/users/users.ts @@ -31,7 +31,7 @@ export const allUsers = async () => { } export const countUsersByApp = async (appId: string) => { - let response: any = await usersCore.searchGlobalUsersByApp(appId) + let response: any = await usersCore.searchGlobalUsersByApp(appId, {}) return { userCount: response.length, }