yxcyxc
All checks were successful
Deploy / deploy (push) Successful in 57s

This commit is contained in:
2026-08-24 00:44:26 +02:00
parent 577b5b742b
commit 774260afaa
9 changed files with 85 additions and 37 deletions

View File

@@ -13,7 +13,7 @@ $restoreEventDraftActive = !empty($restoreEventDraftActive);
$editingEvent = isset($editEvent) && $editEvent !== null;
$editingListing = isset($editListing) && $editListing !== null;
$editing = $editingEvent || $editingListing;
$editingSuggestionDirectly = $editingListing && (string)($editListing['status'] ?? '') !== 'published';
$editingSuggestionDirectly = $editingListing && ((string)($editListing['status'] ?? '') !== 'published' || !empty($canReviewListings));
$eventDraftValues = (!$editing && (($section ?? '') === 'events') && $restoreEventDraftActive && is_array($restoredEventDraft ?? null))
? $restoredEventDraft
: [];
@@ -1744,7 +1744,7 @@ if ($isAdminArea && !empty($canManageSystemSettings)) {
<p class="muted small" style="margin:0;">Die Änderung wird erst nach Prüfung durch einen Admin freigegeben.</p>
</div>
<?php elseif ($editingSuggestionDirectly): ?>
<p class="muted small" style="margin:0;">Dieser Vorschlag ist noch nicht veröffentlicht und kann direkt aktualisiert werden.</p>
<p class="muted small" style="margin:0;"><?= !empty($canReviewListings) ? 'Dieser Eintrag kann mit deinen Admin-Rechten direkt aktualisiert werden.' : 'Dieser Vorschlag ist noch nicht veröffentlicht und kann direkt aktualisiert werden.' ?></p>
<?php elseif (($section ?? '') === 'places'): ?>
<p class="muted small" style="margin:0;">Neue Orte und Veranstaltungen werden erst nach Prüfung durch einen Admin freigegeben.</p>
<?php endif; ?>