fix: restaurar acceso a Optimizador de Aulas (IA) en Accesos Rapidos y menu de cronograma

This commit is contained in:
Carlos Tello
2026-09-03 03:17:15 -03:00
parent 9521b86399
commit 0c867e0031
4 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ genetic_web_bp = Blueprint('genetic_algorithm_web', __name__)
@login_required
def genetic_optimizer():
"""Render the genetic algorithm optimizer interface"""
if current_user.role not in ['ADMIN']:
if not (current_user.has_permission('optimizer', 'read') or (current_user.role and current_user.role.upper() == 'ADMIN')):
return render_template('auth/403.html'), 403
return render_template('genetic_optimizer.html')