This commit is contained in:
biss committed 2026-08-14 19:28:58 +08:00
1 parent 54e1986ad0
commit ccdfe977ba
9 files changed
+175 -17

No files matched your search

@@ -323,10 +323,7 @@ public sealed class CoursesController(
if (scope.Scope == DataScope.All) return source;
if (scope.Scope == DataScope.College)
{
return source.Where(x =>
x.Nature == CourseNature.GeneralRequired ||
x.Nature == CourseNature.GeneralElective ||
x.CollegeId == scope.RestrictedCollegeId);
return source.Where(x => x.CollegeId == scope.RestrictedCollegeId);
}
if (scope.Scope == DataScope.Class)
{