1
0
Fork 0
mirror of synced 2024-09-29 16:51:33 +13:00

cloud check for max user limit

This commit is contained in:
Peter Clement 2022-07-26 12:26:56 +01:00
parent b078ea9d8d
commit 921a287666

View file

@ -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.`
)