changes
This commit is contained in:
@@ -12241,9 +12241,6 @@ def test_push_notification():
|
|||||||
if 'username' not in session:
|
if 'username' not in session:
|
||||||
return jsonify({'success': False, 'error': 'Not authenticated'}), 401
|
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:
|
try:
|
||||||
data = request.get_json(silent=True) or {}
|
data = request.get_json(silent=True) or {}
|
||||||
target_user = data.get('target_user', session['username'])
|
target_user = data.get('target_user', session['username'])
|
||||||
|
|||||||
@@ -252,8 +252,8 @@ def new(date_start: str, date_end: str, time_span: list, slots, slot_length, use
|
|||||||
if calendar_link:
|
if calendar_link:
|
||||||
email_body += f"\n\nKalendereintrag: {calendar_link}"
|
email_body += f"\n\nKalendereintrag: {calendar_link}"
|
||||||
|
|
||||||
if normalized_mail and cfg.EMAIL_ENABLED:
|
#if normalized_mail and cfg.EMAIL_ENABLED:
|
||||||
mail_service.send(normalized_mail, subject, email_body)
|
mail_service.send(normalized_mail, subject, email_body, f"Terminplanungssystem {cfg.SCHOOL_INFO_DEFAULT.get("name")}")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'appointment_id': id_str,
|
'appointment_id': id_str,
|
||||||
|
|||||||
Reference in New Issue
Block a user