Update access control for Scholengroep ICT management and adjust visibility of management buttons
All checks were successful
Build & Push / Build & Push image (push) Successful in 38s

This commit is contained in:
2026-03-03 10:23:33 +01:00
parent 85778855ca
commit 28c05edb0b
2 changed files with 8 additions and 9 deletions

View File

@@ -265,11 +265,11 @@ def remove_user_from_school(school_id, user_id):
return jsonify({'deleted': True})
# ── Scholengroep ICT beheer (superadmin) ──────────────────────────────────────
# ── Scholengroep ICT beheer ───────────────────────────────────────────────────
@admin_bp.route('/scholengroep-ict', methods=['GET'])
@login_required
@superadmin_required
@scholengroep_ict_required # scholengroep_ict mag de lijst lezen; superadmin ook
def list_scholengroep_ict():
users = User.query.filter_by(role='scholengroep_ict', is_active=True)\
.order_by(User.last_name).all()