From d7ccdf90b5af616321b7c7b4f974108c1419946a Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Tue, 26 Jul 2022 12:26:56 +0100 Subject: [PATCH] cloud check for max user limit --- .../portal/manage/users/_components/ImportUsersModal.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/ImportUsersModal.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/ImportUsersModal.svelte index 9d2c2b11ef..64334b4ab2 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/ImportUsersModal.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/ImportUsersModal.svelte @@ -6,7 +6,7 @@ Multiselect, notifications, } from "@budibase/bbui" - import { groups, auth } from "stores/portal" + import { groups, auth, admin } from "stores/portal" import { emailValidator } from "../../../../../../helpers/validation" import { Constants } from "@budibase/frontend-core" @@ -27,7 +27,7 @@ ) const validEmails = userEmails => { - if (userEmails.length > MAX_USERS_UPLOAD_LIMIT) { + if ($admin.cloud && userEmails.length > MAX_USERS_UPLOAD_LIMIT) { notifications.error( `Max limit for upload is 1000 users. Please reduce file size and try again.` )