Fix AppSumo licence owner user invites (#492)
This commit is contained in:
parent
2a23c0a4f5
commit
01312f01e9
|
|
@ -65,7 +65,7 @@ class License extends Model
|
||||||
return [
|
return [
|
||||||
1 => 1,
|
1 => 1,
|
||||||
2 => 5,
|
2 => 5,
|
||||||
3 => null,
|
3 => 10,
|
||||||
][$this->meta['tier']];
|
][$this->meta['tier']];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { watch, ref } from "vue"
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
isWorkspaceAdmin: {},
|
isWorkspaceAdmin: {},
|
||||||
disabled: {
|
disabled: {
|
||||||
|
|
@ -49,8 +47,8 @@ const emit = defineEmits(['fetchUsers'])
|
||||||
const workspacesStore = useWorkspacesStore()
|
const workspacesStore = useWorkspacesStore()
|
||||||
|
|
||||||
const roleOptions = [
|
const roleOptions = [
|
||||||
{ name: "User", value: "user" },
|
{name: "User", value: "user"},
|
||||||
{ name: "Admin", value: "admin" }
|
{name: "Admin", value: "admin"}
|
||||||
]
|
]
|
||||||
|
|
||||||
const newUser = ref("")
|
const newUser = ref("")
|
||||||
|
|
@ -78,7 +76,7 @@ const addUser = () => {
|
||||||
|
|
||||||
emit("fetchUsers")
|
emit("fetchUsers")
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
useAlert().error("There was an error adding user")
|
useAlert().error("There was an error adding user: " + error.data.message)
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
addingUsersState.value = false
|
addingUsersState.value = false
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { computed } from "vue"
|
import { computed } from "vue"
|
||||||
import { useAuthStore } from "../../../stores/auth"
|
|
||||||
import VButton from "~/components/global/VButton.vue"
|
import VButton from "~/components/global/VButton.vue"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -96,7 +95,7 @@ export default {
|
||||||
form_quantity: "Unlimited",
|
form_quantity: "Unlimited",
|
||||||
file_upload_size: "75mb",
|
file_upload_size: "75mb",
|
||||||
domain_names: "Unlimited",
|
domain_names: "Unlimited",
|
||||||
users: 'Unlimited'
|
users: 10
|
||||||
},
|
},
|
||||||
}[this.licenseTier]
|
}[this.licenseTier]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -107,13 +107,5 @@ export const customDomainUsed = function () {
|
||||||
const appDomain = getDomain(config.public.appUrl)
|
const appDomain = getDomain(config.public.appUrl)
|
||||||
const host = getHost()
|
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
|
return host !== appDomain && getDomain(host) !== appDomain
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue