Skip to content
Snippets Groups Projects
Commit 0c3b4069 authored by David Siegfried's avatar David Siegfried
Browse files

use system user for notifications when deleting room bookings via the cli, closes #1623

Closes #1623

Merge request studip/studip!1045
parent faa0042d
No related branches found
No related tags found
No related merge requests found
Pipeline #6647 passed
......@@ -229,7 +229,9 @@ class Message extends SimpleORMap implements PrivacyObject
public static function send($sender, $recipients, $subject, $message)
{
if ($sender === 'cli') {
$sender = '____%system%____';
}
$messaging = new \messaging();
$result = $messaging->insert_message($message,
$recipients,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment