Nicht Admin mit Dispatcher vermischen

This commit is contained in:
concierge committed 2026-10-23 17:05:41 +02:00
1 parent 7b8d2ec396
commit a16f28b040
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -2,7 +2,7 @@
Haupt-Views
"""
from flask import Blueprint, render_template, g, redirect, url_for
from cmbnet.auth import login_required
from cmbnet.auth import login_required, role_required
views_bp = Blueprint('views', __name__)
@@ -27,14 +27,14 @@ def index(**kwargs):
@views_bp.route('/dispatcher')
@login_required
@role_required('Dispatcher')
def dispatcher(**kwargs):
"""Dispatcher-View"""
return render_template('dispatcher.html')
@views_bp.route('/dispatcher_mobil')
@login_required
@role_required('Dispatcher')
def dispatcher_mobil(**kwargs):
"""Dispatcher-Mobil-View"""
return render_template('dispatcher_mobil.html')
+1 -1
View File
@@ -4,7 +4,7 @@
{% block content %}
<h1>Accountverwaltung</h1>
<p><a href="{{ url_for('views.dispatcher', tenant=session.tenant_code) }}">← Zurück</a> | <a href="{{ url_for('auth.logout', tenant=session.tenant_code) }}">Abmelden</a></p>
<p><a href="{{ url_for('auth.logout', tenant=session.tenant_code) }}">Abmelden</a></p>
<table id="accountsTable">
<thead>