This commit is contained in:
Matthias Hochmeister
2026-03-16 15:47:28 +01:00
parent 41f45acd1c
commit 3fca17f853

View File

@@ -2985,11 +2985,13 @@ export default function Kalender() {
Von: {detailBooking.gebucht_von_name} Von: {detailBooking.gebucht_von_name}
</Typography> </Typography>
)} )}
{canWriteBookings && ( {(canWriteBookings || detailBooking.gebucht_von === user?.id) && (
<Box sx={{ mt: 1.5, display: 'flex', gap: 1 }}> <Box sx={{ mt: 1.5, display: 'flex', gap: 1 }}>
{canWriteBookings && (
<Button size="small" startIcon={<EditIcon />} onClick={handleOpenBookingEdit}> <Button size="small" startIcon={<EditIcon />} onClick={handleOpenBookingEdit}>
Bearbeiten Bearbeiten
</Button> </Button>
)}
<Button <Button
size="small" size="small"
color="error" color="error"