From d38faac20007ffa9a509f939d9c4d3a30db0139b Mon Sep 17 00:00:00 2001
From: fosterfarrell9 <28628554+fosterfarrell9@users.noreply.github.com>
Date: Sun, 7 Apr 2024 12:05:54 +0200
Subject: [PATCH] add helpdesk informing about inability to change editors
---
app/views/courses/_basics.html.erb | 3 +++
config/locales/de.yml | 4 ++++
config/locales/en.yml | 4 ++++
3 files changed, 11 insertions(+)
diff --git a/app/views/courses/_basics.html.erb b/app/views/courses/_basics.html.erb
index f2bbc8bbc..7888a1117 100644
--- a/app/views/courses/_basics.html.erb
+++ b/app/views/courses/_basics.html.erb
@@ -70,6 +70,9 @@
<% else %>
<%= t('basics.editors') %>
+ <%= helpdesk(t('admin.course.info.no_right_to_change_editors',
+ project_email: mail_to(DefaultSetting::PROJECT_EMAIL, nil)),
+ true) %>
<% course.editors.each do |e| %>
-
diff --git a/config/locales/de.yml b/config/locales/de.yml
index 75f7e2cc6..350c6a5f7 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -807,6 +807,10 @@ de:
das Modul bearbeiten, insbesondere können sie Veranstaltungen innerhalb
des Moduls anlegen. ModuleditorInnen erben die Bearbeitungsrechte für
alle Veranstaltungen innerhalb des Moduls.
+ no_right_to_change_editors: >
+ ModuleditoInnen können nur von AdministratorInnen geändert werden.
+ Bitte wende Dich per Email an %{project_email}, wenn hier
+ eine Änderung vorgenommen werden soll.
preceding_courses: >
Hier kannst Du angeben, auf welchen Modulen das
vorliegende Modul aufbaut.
diff --git a/config/locales/en.yml b/config/locales/en.yml
index b7a7ca624..385d7830e 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -772,6 +772,10 @@ en:
in particular they can create event series within the course. Every course
editor inherits editing access for all event series belonging to the
course.
+ no_right_to_change_editors: >
+ Course editors can only be changed by administrators.
+ Please contact %{project_email} by email if want a change to be made
+ here.
preceding_courses: >
Here you can enter which courses this course builds upon.
E.g., Linear Algebra 1 and Linear Algebra 2 might be preceding