Skip to content

Beautiful Open-Source Form Builder

Fix AppSumo licence owner user invites (#492)

Julien Nahum01312f01e9f7
diff --git a/app/Models/License.php b/app/Models/License.php
index 76010d109..fe8939566 100644
--- a/app/Models/License.php
+++ b/app/Models/License.php
@@ -65,7 +65,7 @@ class License extends Model
return [
1 => 1,
2 => 5,
- 3 => null,
+ 3 => 10,
][$this->meta['tier']];
}
diff --git a/client/components/pages/admin/AddUserToWorkspace.vue b/client/components/pages/admin/AddUserToWorkspace.vue
index 1541221d5..b08020620 100644
--- a/client/components/pages/admin/AddUserToWorkspace.vue
+++ b/client/components/pages/admin/AddUserToWorkspace.vue
@@ -35,8 +35,6 @@
</template>
<script setup>
-import { watch, ref } from "vue"
-
const props = defineProps({
isWorkspaceAdmin: {},
disabled: {
@@ -49,8 +47,8 @@ const emit = defineEmits(['fetchUsers'])
const workspacesStore = useWorkspacesStore()
const roleOptions = [
- { name: "User", value: "user" },
- { name: "Admin", value: "admin" }
+ {name: "User", value: "user"},
+ {name: "Admin", value: "admin"}
]
const newUser = ref("")
@@ -78,7 +76,7 @@ const addUser = () => {
emit("fetchUsers")
}).catch((error) => {
- useAlert().error("There was an error adding user")
+ useAlert().error("There was an error adding user: " + error.data.message)
}).finally(() => {
addingUsersState.value = false
})
diff --git a/client/components/vendor/appsumo/AppSumoBilling.vue b/client/components/vendor/appsumo/AppSumoBilling.vue
index 011219e8a..30716206d 100644
--- a/client/components/vendor/appsumo/AppSumoBilling.vue
+++ b/client/components/vendor/appsumo/AppSumoBilling.vue
@@ -55,7 +55,6 @@
<script>
import { computed } from "vue"
-import { useAuthStore } from "../../../stores/auth"
import VButton from "~/components/global/VButton.vue"
export default {
@@ -96,7 +95,7 @@ export default {
form_quantity: "Unlimited",
file_upload_size: "75mb",
domain_names: "Unlimited",
- users: 'Unlimited'
+ users: 10
},
}[this.licenseTier]
},
diff --git a/client/lib/utils.js b/client/lib/utils.js
index bb08978a2..2894334c8 100644
--- a/client/lib/utils.js
+++ b/client/lib/utils.js
@@ -107,13 +107,5 @@ export const customDomainUsed = function () {
const appDomain = getDomain(config.public.appUrl)
const host = getHost()
- console.log('Checking if custom domain is used', {
- appDomain,
- host,
- getDomain: getDomain(host),
- used: host !== appDomain,
- hostDomainused: getDomain(host) !== appDomain
- })
-
return host !== appDomain && getDomain(host) !== appDomain
}