From 07b2e9c7f4e94b34546449ce042162bc118caf90 Mon Sep 17 00:00:00 2001 From: tomas-muller Date: Wed, 28 Feb 2024 14:39:33 +0100 Subject: [PATCH] Batch Student Solver Reports: Export CSV - corrected permission checking for the published student scheduling solver - either StudentSectioningSolverReports or StudentSectioningSolver is needed - this fixes an issue for Student Scheduling Manager role --- .../sectioning/SectioningReportsExporter.java | 6 ++++-- WebContent/help/Release-Notes.xml | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/JavaSource/org/unitime/timetable/server/sectioning/SectioningReportsExporter.java b/JavaSource/org/unitime/timetable/server/sectioning/SectioningReportsExporter.java index 794e6d862a..3d6d4d5cd1 100644 --- a/JavaSource/org/unitime/timetable/server/sectioning/SectioningReportsExporter.java +++ b/JavaSource/org/unitime/timetable/server/sectioning/SectioningReportsExporter.java @@ -95,7 +95,8 @@ public void export(ExportHelper helper) throws IOException { SessionContext context = helper.getSessionContext(); DataProperties config = null; if (online == null) { - context.checkPermissionAnyAuthority(sessionId, "Session", Right.StudentScheduling); + if (!context.hasPermission(Right.StudentSectioningSolverReports)) + context.checkPermission(Right.StudentSectioningSolver); StudentSolverProxy solver = studentSectioningSolverService.getSolver("PUBLISHED_" + sessionId, sessionId); if (solver == null) @@ -125,7 +126,8 @@ public void export(ExportHelper helper) throws IOException { csv = solver.getReport(parameters); } else { - context.checkPermissionAnyAuthority(sessionId, "Session", Right.StudentSectioningSolver); + if (!context.hasPermissionAnyAuthority(sessionId, "Session", Right.StudentSectioningSolverReports)) + context.checkPermissionAnyAuthority(sessionId, "Session", Right.StudentSectioningSolver); StudentSolverProxy solver = studentSectioningSolverService.getSolver(); if (solver == null) diff --git a/WebContent/help/Release-Notes.xml b/WebContent/help/Release-Notes.xml index c99fc6fd0b..e7af3c2d7e 100644 --- a/WebContent/help/Release-Notes.xml +++ b/WebContent/help/Release-Notes.xml @@ -28,6 +28,19 @@ 4.7.${build.number} ${build.date} + + Student Scheduling + + Batch Student Solver Reports: Export CSV + + Corrected permission checking for the published student scheduling solver. + + + + + + 4.7.109 + Fri, 26 Jan 2024 Course Timetabling