examPractices = examPracticeService.selectExamPracticeList( examPractice );
+ if (ShiroUtils.getSysUser() != null) {
+ boolean b = trainCourseUserService.authority( ShiroUtils.getSysUser().getUserId(), id );
+ map.put( "user", ShiroUtils.getSysUser() );
+ map.put( "courseAuth",b);
+ }
map.put( "trainCourse", trainCourse );
map.put( "trainCourseSections", trainCourseSections );
map.put( "examPractices", examPractices );
- map.put( "user", ShiroUtils.getSysUser() );
return prefix + "/course/courseInfo";
}
diff --git a/ruoyi-cms/src/main/resources/templates/web/course/courseInfo.html b/ruoyi-cms/src/main/resources/templates/web/course/courseInfo.html
index c08c4fa8d..759bfcc0d 100644
--- a/ruoyi-cms/src/main/resources/templates/web/course/courseInfo.html
+++ b/ruoyi-cms/src/main/resources/templates/web/course/courseInfo.html
@@ -178,8 +178,8 @@
-
- 有效期:永久
+
+ 有效期:${config.getKey("course.days")}(天)