fix : les non-admin ne peuvent plus supprimer de réception/expédition en attente

This commit is contained in:
2026-03-30 15:43:17 +02:00
parent bbd05cea3e
commit 9d389e57ff
4 changed files with 31 additions and 18 deletions

View File

@@ -4,7 +4,7 @@
:columns="columns"
:items="receptionList ?? []"
route-prefix="/reception"
show-actions
:show-actions="auth.isAdmin"
>
<template #cell-receptionDate="{ item }">
{{ formatDate(item.receptionDate) }}
@@ -23,6 +23,9 @@
<script setup lang="ts">
import type { ReceptionData } from '~/services/dto/reception-data'
import { getReceptionList, deleteReception } from '~/services/reception'
import { useAuthStore } from '~/stores/auth'
const auth = useAuthStore()
const columns = [
{ key: 'receptionDate', label: 'Date et heure' },