Skip to content
Snippets Groups Projects
Commit 15b5c3da authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

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

Closes #1623

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