This commit is contained in:
@@ -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; ?>
|
||||
|
||||
Reference in New Issue
Block a user