Skip to content

Commit f469a7d

Browse files
Fix capability for receiving email upon evasys coordinator planning eval
1 parent 0733471 commit f469a7d

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

classes/evaluation_manager.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ public static function set_default_evaluation_for($courseids, evasys_category $c
100100
];
101101

102102
$synchronizer->sync_students();
103-
$teachers = get_users_by_capability(\context_course::instance($course->id), 'block/evasys_sync:getnotifiedteacher');
103+
$teachers = get_users_by_capability(\context_course::instance($course->id), 'block/evasys_sync:teacherforcourse');
104104

105105
$data = new \stdClass();
106-
$data->coordinator = fullname($coordinatoruser);
106+
$data->coordinator = $coordinatoruser->email;
107107
$data->start = userdate($category->get('standard_time_start'));
108108
$data->end = userdate($category->get('standard_time_end'));
109109
$data->courseshort = $course->shortname;

db/access.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@
6666
'contextlevel' => CONTEXT_COURSE,
6767
'captype' => 'read',
6868
'archetypes' => [
69-
'editingteacher' => CAP_ALLOW,
70-
'manager' => CAP_PREVENT
69+
'editingteacher' => CAP_ALLOW
7170
]
7271
]
7372
);

lang/de/block_evasys_sync.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,13 @@
273273
$string['notify_teacher_email_subject'] = '{$a->courseshort}: Eine Evaluation wurde für Ihren Kurs geplant.';
274274
$string['notify_teacher_email_body'] = 'Sehr geehrte*r Lehrende*r,
275275
276-
eine Evaluation wurde für Ihren Kurs {$a->coursefull}
276+
dies ist eine automatisch generierte Mail, ausgelöst dadurch, dass Ihr Evaluationskoordinator eine Evaluation für ihren Kurs <b>{$a->coursefull}</b>
277277
von {$a->start} bis {$a->end}
278-
geplant.
278+
geplant hat.
279279
280-
Falls Sie Probleme mit dem Zeitraum der Evaluation haben, wenden Sie sich bitte an Ihre*n Evaluationskoordinator*in {$a->coordinator}.
280+
Bei Fragen oder Rückmeldungen wenden Sie sich bitte an Ihre*n Evaluationskoordinator*in via {$a->coordinator}.
281281
282-
Mit freundlichen Grüßen,
282+
Mit freundlichen Grüßen
283283
Ihr Learnweb-Support';
284284

285285
$string['request_eval'] = 'Evaluation beantragen';

lang/en/block_evasys_sync.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@
284284
$string['notify_teacher_email_subject'] = '{$a->courseshort}: A evaluation was planned for your course.';
285285
$string['notify_teacher_email_body'] = 'Dear teacher,
286286
287-
an evaluation was planned for your course {$a->coursefull}
287+
this is an automatically generated mail, caused by you evasys coordinator planning an evaluation for your course <b>{$a->coursefull}</b>
288288
from {$a->start}
289289
to {$a->end}.
290290
291-
If this evaluation doesn\'t suit you at all, please contact your evasys coordinator {$a->coordinator}.
291+
In case of questions or issues regarding this evaluation, please contact your evasys coordinator via {$a->coordinator}.
292292
293293
Sincerely,
294294
Your Learnweb-Support';

0 commit comments

Comments
 (0)