From 529f81b28ed77c62acaa63fad957e751798f2440 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 31 Jul 2026 22:36:17 +0200 Subject: Warn before the gate refuses, and check restore destinations nodes#new marks the kinds that place under /updates, derived from each kind's own path_prefix. The three parent pickers mark candidates the current user cannot publish into; menu_search returns needs_redaktion per result, computed per user rather than as a bare restricted flag, and the menu-item picker opts out. restore_from_trash! checks its destination: the restore is the move, applied rather than staged, so no later publish would have caught it. The node returns as a draft either way. --- config/locales/de.yml | 2 ++ config/locales/en.yml | 2 ++ 2 files changed, 4 insertions(+) (limited to 'config') diff --git a/config/locales/de.yml b/config/locales/de.yml index 746aa803..74f6e8ae 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -382,6 +382,7 @@ de: attachment: "Anhang" attach_hint: "Dieses Asset wird der neuen Seite automatisch angehängt." as_headline: "als Aufmacher der Seite" + restricted_kind: "Veröffentlichen hier ist der Redaktion vorbehalten. Anlegen und schreiben kannst du aber." edit: save_draft: "Entwurf speichern" save_unlock_exit: "Speichern + Entsperren + Verlassen" @@ -743,6 +744,7 @@ de: insert_image: "Bild einfügen" insert_image_tooltip: "Eines der angehängten Bilder dieser Seite einfügen" copied: "Kopiert!" + needs_redaktion: "Redaktion nötig" nav_controls: dashboard: "Dashboard" search: "Suche" diff --git a/config/locales/en.yml b/config/locales/en.yml index 22429c9e..c23f2c33 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -325,6 +325,7 @@ en: attachment: "attachment" attach_hint: "This asset will automatically be attached to the new page." as_headline: "as the page's headline" + restricted_kind: "Publishing here is reserved for Redaktion. You can create and write freely, though." edit: save_draft: "Save Draft" save_unlock_exit: "Save + Unlock + Exit" @@ -686,6 +687,7 @@ en: insert_image: "Insert image" insert_image_tooltip: "Insert one of this page's attached images" copied: "Copied!" + needs_redaktion: "Redaktion required" nav_controls: dashboard: "Dashboard" search: "Search" -- cgit v1.3