xiatian 7 months ago
parent
commit
5c914927d5

+ 1 - 1
stmms-biz/src/main/java/cn/com/qmth/stmms/biz/basic/service/impl/PrivilegeServiceImpl.java

@@ -80,7 +80,7 @@ public class PrivilegeServiceImpl extends BaseQueryService<Privilege> implements
         initSchoolViewerPrivilege(schoolId);
         initSchoolViewerPrivilege(schoolId);
 
 
         SystemAuth systemAuth = authService.findOne();
         SystemAuth systemAuth = authService.findOne();
-        if (SystemAuthType.ONLINE.equals(systemAuth.getType())) {
+        if (systemAuth != null && SystemAuthType.ONLINE.equals(systemAuth.getType())) {
             disablePrivilege(schoolId, new String[] { "user_list-help_video", "exam_mark-group-help_video",
             disablePrivilege(schoolId, new String[] { "user_list-help_video", "exam_mark-group-help_video",
                     "exam_inspected_info-list-help_video" });
                     "exam_inspected_info-list-help_video" });
         }
         }