mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-26 12:49:28 +08:00
完善/user/courses接口 && fixed: 后台学员top10
This commit is contained in:
@@ -37,7 +37,7 @@ public class UserBus {
|
||||
public boolean canSeeCourse(User user, Course course) {
|
||||
List<Integer> courseDepIds = courseService.getDepIdsByCourseId(course.getId());
|
||||
if (courseDepIds == null || courseDepIds.size() == 0) {
|
||||
//线上课无所属部门=>公开课=>任何学员都可以学习
|
||||
//线上课无所属部门=>任何学员都可以学习
|
||||
return true;
|
||||
}
|
||||
List<Integer> userDepIds = userService.getDepIdsByUserId(user.getId());
|
||||
|
||||
Reference in New Issue
Block a user