|
|
@ -65,17 +65,17 @@ export const useWorkspace = defineStore('workspaceStore', () => { |
|
|
|
/** getters */ |
|
|
|
/** getters */ |
|
|
|
const isWorkspaceCreator = computed(() => { |
|
|
|
const isWorkspaceCreator = computed(() => { |
|
|
|
// todo: type correction
|
|
|
|
// todo: type correction
|
|
|
|
return orgRoles.value[Role.OrgLevelCreator] |
|
|
|
return orgRoles.value?.[Role.OrgLevelCreator] |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const isWorkspaceOwner = computed(() => { |
|
|
|
const isWorkspaceOwner = computed(() => { |
|
|
|
// todo: type correction
|
|
|
|
// todo: type correction
|
|
|
|
return orgRoles.value[Role.OrgLevelCreator] |
|
|
|
return orgRoles.value?.[Role.OrgLevelCreator] |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const isWorkspaceOwnerOrCreator = computed(() => { |
|
|
|
const isWorkspaceOwnerOrCreator = computed(() => { |
|
|
|
// todo: type correction
|
|
|
|
// todo: type correction
|
|
|
|
return orgRoles.value[Role.OrgLevelCreator] |
|
|
|
return orgRoles.value?.[Role.OrgLevelCreator] |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
/** actions */ |
|
|
|
/** actions */ |
|
|
|