2025-03-09 22:21:13 +01:00
|
|
|
<template>
|
|
|
|
<main>
|
|
|
|
<h1>Edit</h1>
|
2025-03-11 14:12:33 +01:00
|
|
|
<h2>Locations</h2>
|
|
|
|
<LocationsTable :edit="isAdmin" />
|
2025-03-09 22:21:13 +01:00
|
|
|
</main>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
definePageMeta({
|
|
|
|
middleware: ["authenticated"],
|
|
|
|
allowedAccountTypes: ["crew", "admin"],
|
2025-03-11 14:12:33 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
const { data: session } = await useAccountSession();
|
|
|
|
const isAdmin = computed(() => session.value?.account.type === "admin")
|
2025-03-09 22:21:13 +01:00
|
|
|
</script>
|