summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-01 00:27:34 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-01 00:27:34 +0200
commit8bcacace28df52fd972c54e6850aa3b93f5c8bdf (patch)
tree05e90dd4e8f31ebb142f66239025da15e873901f /config
parent529f81b28ed77c62acaa63fad957e751798f2440 (diff)
Declare role requirements per controller
RoleRequired supplies require_redaktion and require_admin for surfaces that are not nodes and so cannot be reached by Node#restricted?. Navigation is content rather than plumbing, so menu_items requires redaktion. User management is janitorial and requires admin: index, new, create, reset_otp, deactivate, reactivate. verify_status now also covers show, without which any logged-in user could read any account by walking a small id space. Editing your own account stays open. The dashboard hides the Users and Navigation buttons from those who cannot use them; everything else stays visible to everyone. Both denials share one message and land on the dashboard. Adds redella (redaktion) and alufa (redaktion + alumni) fixtures.
Diffstat (limited to 'config')
-rw-r--r--config/locales/de.yml2
-rw-r--r--config/locales/en.yml2
2 files changed, 4 insertions, 0 deletions
diff --git a/config/locales/de.yml b/config/locales/de.yml
index 74f6e8ae..04eb738e 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -574,6 +574,8 @@ de:
574 headline_ineligible: "Dieser Asset-Typ kann kein Aufmacher sein." 574 headline_ineligible: "Dieser Asset-Typ kann kein Aufmacher sein."
575 locked_by_other: "Die Seite ist gerade von jemand anderem gesperrt." 575 locked_by_other: "Die Seite ist gerade von jemand anderem gesperrt."
576 autosave_failed: "Autosave fehlgeschlagen" 576 autosave_failed: "Autosave fehlgeschlagen"
577 redaktion_required: "Diese Seite ist der Redaktion vorbehalten."
578 admin_required: "Diese Seite ist der Administration vorbehalten."
577 sessions: 579 sessions:
578 otp_setup_now: "Dein Konto erfordert einen zweiten Faktor — richte ihn jetzt ein." 580 otp_setup_now: "Dein Konto erfordert einen zweiten Faktor — richte ihn jetzt ein."
579 logged_out: "Du wurdest abgemeldet." 581 logged_out: "Du wurdest abgemeldet."
diff --git a/config/locales/en.yml b/config/locales/en.yml
index c23f2c33..2f7ac72f 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -533,6 +533,8 @@ en:
533 headline_ineligible: "This asset type cannot be a headline." 533 headline_ineligible: "This asset type cannot be a headline."
534 locked_by_other: "The page is locked by another editor." 534 locked_by_other: "The page is locked by another editor."
535 autosave_failed: "Autosave failed" 535 autosave_failed: "Autosave failed"
536 redaktion_required: "This page is reserved for Redaktion."
537 admin_required: "This page is reserved for administrators."
536 sessions: 538 sessions:
537 otp_setup_now: "Your account requires a second factor -- set it up now." 539 otp_setup_now: "Your account requires a second factor -- set it up now."
538 logged_out: "You have been logged out." 540 logged_out: "You have been logged out."