This commit is contained in:
Matthias Hochmeister
2026-03-13 15:04:40 +01:00
parent 8d9388ca9a
commit 7833dca29c
3 changed files with 25 additions and 7 deletions

View File

@@ -435,7 +435,7 @@ function MitgliedDetail() {
</Box>
{/* Edit controls */}
{canEdit && (
{canEdit && (canWrite || !!profile) && (
<Box>
{editMode ? (
<Box sx={{ display: 'flex', gap: 1 }}>
@@ -475,7 +475,9 @@ function MitgliedDetail() {
{!profile && (
<Alert severity="info" sx={{ mt: 2 }}>
Für dieses Mitglied wurde noch kein Profil angelegt.
{canWrite && ' Ein Kommandant kann das Profil unter "Stammdaten" erstellen.'}
{canWrite
? ' Ein Kommandant kann das Profil unter "Stammdaten" erstellen.'
: ' Wende dich an einen Administrator, um dein Profil anlegen zu lassen.'}
</Alert>
)}