Allererste Fassung von Gruppen- und Dispatcher-Mobil View

This commit is contained in:
concierge committed 2026-10-28 14:23:15 +01:00
1 parent 47240302d0
commit 8e5f91948f
9 files changed
+1383 -20

No files matched your search

+3
View File
@@ -57,6 +57,9 @@ def login(**kwargs):
if role == 'Administrator':
return redirect(url_for('admin.dashboard', tenant=tenant_selected))
elif role == 'Dispatcher':
ua = (request.headers.get('User-Agent') or '').lower()
if any(x in ua for x in ['android', 'iphone', 'ipod', 'ipad', 'mobile']):
return redirect(url_for('views.dispatcher_mobil', tenant=tenant_selected))
return redirect(url_for('views.dispatcher', tenant=tenant_selected))
elif role == 'Beobachter':
return redirect(url_for('views.beobachter', tenant=tenant_selected))