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 [
|
||||
1 => 1,
|
||||
2 => 5,
|
||||
3 => null,
|
||||
3 => 10,
|
||||
][$this->meta['tier']];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue