diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-01 04:14:00 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-01 04:14:00 +0200 |
| commit | abd7ee1fc2ecc15b50944db30c59bedc26ec41b6 (patch) | |
| tree | 821bb8ca610664c57d9065bf62285166243500a4 /app/helpers | |
| parent | 6df48c1413a14516e7ee8919f33fbc13f0141966 (diff) | |
Let Redaktion grant and revoke its own role
Any holder may add or remove another account, witnessed as
redaktion_grant/revoke so the vouching is legible. Not behind elevation:
onboarding must not wait for a keyholder, and a compromised Redaktion
account can already publish.
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/node_actions_helper.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/helpers/node_actions_helper.rb b/app/helpers/node_actions_helper.rb index f57ef84f..53f6ecd0 100644 --- a/app/helpers/node_actions_helper.rb +++ b/app/helpers/node_actions_helper.rb | |||
| @@ -20,7 +20,9 @@ module NodeActionsHelper | |||
| 20 | "otp_disable" => "shield-off", | 20 | "otp_disable" => "shield-off", |
| 21 | "otp_reset" => "shield-x", | 21 | "otp_reset" => "shield-x", |
| 22 | "user_deactivate" => "user-off", | 22 | "user_deactivate" => "user-off", |
| 23 | "user_reactivate" => "user-check" | 23 | "user_reactivate" => "user-check", |
| 24 | "redaktion_grant" => "user-plus", | ||
| 25 | "redaktion_revoke" => "user-minus" | ||
| 24 | }.freeze | 26 | }.freeze |
| 25 | 27 | ||
| 26 | def verb_icon action | 28 | def verb_icon action |
| @@ -283,4 +285,14 @@ module NodeActionsHelper | |||
| 283 | t("node_actions.user_reactivate", :actor => actor_ref(action), | 285 | t("node_actions.user_reactivate", :actor => actor_ref(action), |
| 284 | :target => user_participant_ref(action)).html_safe | 286 | :target => user_participant_ref(action)).html_safe |
| 285 | end | 287 | end |
| 288 | |||
| 289 | def summarize_redaktion_grant action | ||
| 290 | t("node_actions.redaktion_grant", :actor => actor_ref(action), | ||
| 291 | :target => user_participant_ref(action)).html_safe | ||
| 292 | end | ||
| 293 | |||
| 294 | def summarize_redaktion_revoke action | ||
| 295 | t("node_actions.redaktion_revoke", :actor => actor_ref(action), | ||
| 296 | :target => user_participant_ref(action)).html_safe | ||
| 297 | end | ||
| 286 | end | 298 | end |
