cloud check for max user limit

This commit is contained in:
Peter Clement 2022-07-26 12:26:56 +01:00
parent cd426a5ca7
commit d7ccdf90b5
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
Multiselect, Multiselect,
notifications, notifications,
} from "@budibase/bbui" } from "@budibase/bbui"
import { groups, auth } from "stores/portal" import { groups, auth, admin } from "stores/portal"
import { emailValidator } from "../../../../../../helpers/validation" import { emailValidator } from "../../../../../../helpers/validation"
import { Constants } from "@budibase/frontend-core" import { Constants } from "@budibase/frontend-core"
@ -27,7 +27,7 @@
) )
const validEmails = userEmails => { const validEmails = userEmails => {
if (userEmails.length > MAX_USERS_UPLOAD_LIMIT) { if ($admin.cloud && userEmails.length > MAX_USERS_UPLOAD_LIMIT) {
notifications.error( notifications.error(
`Max limit for upload is 1000 users. Please reduce file size and try again.` `Max limit for upload is 1000 users. Please reduce file size and try again.`
) )