diff --git a/Web/app.py b/Web/app.py index 8ec6d4c..5d479e5 100755 --- a/Web/app.py +++ b/Web/app.py @@ -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']) diff --git a/Web/modules/terminplaner/backend_server.py b/Web/modules/terminplaner/backend_server.py index 57d7c18..3adf457 100644 --- a/Web/modules/terminplaner/backend_server.py +++ b/Web/modules/terminplaner/backend_server.py @@ -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,