Skip to content

Beautiful Open-Source Form Builder

Hide invite warning for AppSumo users

Julien Nahum2f497d93c17d
diff --git a/client/components/pages/settings/WorkSpaceUser.vue b/client/components/pages/settings/WorkSpaceUser.vue
index cc9f16c3f..2b32a6978 100644
--- a/client/components/pages/settings/WorkSpaceUser.vue
+++ b/client/components/pages/settings/WorkSpaceUser.vue
@@ -21,7 +21,7 @@
Invite a new user and collaborate on building forms
</h4>
- <template v-if="paidPlansEnabled">
+ <template v-if="paidPlansEnabled && !hasActiveLicense">
<UAlert
v-if="workspace.is_pro"
icon="i-heroicons-credit-card"
@@ -206,7 +206,7 @@ const paidPlansEnabled = computed(() => useRuntimeConfig().public.paidPlansEnabl
const canInviteUser = computed(() => {
return paidPlansEnabled.value ? workspace.value.is_pro : true
})
-
+const hasActiveLicense = computed(() => authStore.has_active_license)
onMounted(() => {
getWorkspaceUsers()
diff --git a/client/components/vendor/appsumo/AppSumoBilling.vue b/client/components/vendor/appsumo/AppSumoBilling.vue
index 30716206d..d0d80b7fa 100644
--- a/client/components/vendor/appsumo/AppSumoBilling.vue
+++ b/client/components/vendor/appsumo/AppSumoBilling.vue
@@ -95,7 +95,7 @@ export default {
form_quantity: "Unlimited",
file_upload_size: "75mb",
domain_names: "Unlimited",
- users: 10
+ users: 20
},
}[this.licenseTier]
},
diff --git a/client/stores/auth.js b/client/stores/auth.js
index 8e2e67cd5..818c4c013 100644
--- a/client/stores/auth.js
+++ b/client/stores/auth.js
@@ -10,6 +10,7 @@ export const useAuthStore = defineStore("auth", {
},
getters: {
check: (state) => state.user !== null && state.user !== undefined,
+ has_active_license: (state) => state.user !== null && state.user !== undefined && state.user.active_license !== null,
isImpersonating: (state) =>
state.admin_token !== null && state.admin_token !== undefined,
},