Fix AppSumo licence owner user invites (#492)

This commit is contained in:
Julien Nahum 2024-07-17 12:13:03 +02:00 committed by GitHub
parent 2a23c0a4f5
commit 01312f01e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 16 deletions

View File

@ -65,7 +65,7 @@ class License extends Model
return [
1 => 1,
2 => 5,
3 => null,
3 => 10,
][$this->meta['tier']];
}

View File

@ -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
})

View File

@ -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]
},

8
client/lib/utils.js vendored
View File

@ -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
}