fix enrollment for the new school-year
Tests / PHPUnit (push) Successful in 1m26s

This commit is contained in:
root
2026-08-07 23:43:31 -04:00
parent b6f3b14e7b
commit 1ef2800f12
66 changed files with 8997 additions and 498 deletions
+10
View File
@@ -132,6 +132,16 @@ abstract class BaseController extends Controller
service('schoolYearWriteGuard')->assertWritable($context, $allowDraftForAdmin, $isAdmin);
}
protected function assertSchoolYearNameWritable(
string $schoolYear,
bool $allowDraftForAdmin = false,
bool $isAdmin = false
): void {
$context = service('schoolYearContext')->forYearName($schoolYear);
$this->assertSchoolYearWritable($context, $allowDraftForAdmin, $isAdmin);
}
private function syncSchoolYearPropertyFromContext(): void
{
if (! property_exists($this, 'schoolYear')) {