Publish current project state

This commit is contained in:
2026-09-14 10:47:21 +08:00
parent 0dd188c46f
commit 4ad56ee9f8
186 changed files with 6289 additions and 1657 deletions
@@ -1,5 +1,6 @@
import { computed } from 'vue';
import { useStoreGetters } from 'dashboard/composables/store';
import { ROLE_ADMINISTRATOR } from 'dashboard/constants/permissions.js';
/**
* Composable to determine if the current user is an administrator.
@@ -9,7 +10,7 @@ export function useAdmin() {
const getters = useStoreGetters();
const currentUserRole = computed(() => getters.getCurrentRole.value);
const isAdmin = computed(() => currentUserRole.value === 'administrator');
const isAdmin = computed(() => currentUserRole.value === ROLE_ADMINISTRATOR);
return {
isAdmin,