This commit is contained in:
2026-07-30 01:09:58 +02:00
parent 1331afa4da
commit b71f2e9089
2 changed files with 2 additions and 5 deletions
-3
View File
@@ -12241,9 +12241,6 @@ def test_push_notification():
if 'username' not in session:
return jsonify({'success': False, 'error': 'Not authenticated'}), 401
if not us.is_admin(session['username']):
return jsonify({'success': False, 'error': 'Admin access required'}), 403
try:
data = request.get_json(silent=True) or {}
target_user = data.get('target_user', session['username'])
+2 -2
View File
@@ -252,8 +252,8 @@ def new(date_start: str, date_end: str, time_span: list, slots, slot_length, use
if calendar_link:
email_body += f"\n\nKalendereintrag: {calendar_link}"
if normalized_mail and cfg.EMAIL_ENABLED:
mail_service.send(normalized_mail, subject, email_body)
#if normalized_mail and cfg.EMAIL_ENABLED:
mail_service.send(normalized_mail, subject, email_body, f"Terminplanungssystem {cfg.SCHOOL_INFO_DEFAULT.get("name")}")
return {
'appointment_id': id_str,