|
@@ -20,6 +20,7 @@ import cn.com.qmth.stmms.biz.basic.service.PrivilegeService;
|
|
|
import cn.com.qmth.stmms.biz.common.BaseQueryService;
|
|
|
import cn.com.qmth.stmms.biz.config.model.SystemAuth;
|
|
|
import cn.com.qmth.stmms.biz.config.service.SystemAuthService;
|
|
|
+import cn.com.qmth.stmms.biz.config.service.impl.SystemCache;
|
|
|
import cn.com.qmth.stmms.common.enums.PrivilegeType;
|
|
|
import cn.com.qmth.stmms.common.enums.Role;
|
|
|
import cn.com.qmth.stmms.common.enums.SystemAuthType;
|
|
@@ -43,6 +44,9 @@ public class PrivilegeServiceImpl extends BaseQueryService<Privilege> implements
|
|
|
@Autowired
|
|
|
private SystemAuthService authService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SystemCache authCache;
|
|
|
+
|
|
|
@Override
|
|
|
public List<Privilege> getMenuPrivileges() {
|
|
|
if (privileges == null) {
|
|
@@ -80,7 +84,7 @@ public class PrivilegeServiceImpl extends BaseQueryService<Privilege> implements
|
|
|
initSchoolViewerPrivilege(schoolId);
|
|
|
|
|
|
SystemAuth systemAuth = authService.findOne();
|
|
|
- if (systemAuth != null && SystemAuthType.ONLINE.equals(systemAuth.getType())) {
|
|
|
+ if (systemAuth != null && SystemAuthType.ONLINE.equals(systemAuth.getType()) && authCache.isAuth()) {
|
|
|
disablePrivilege(schoolId, new String[] { "user_list-help_video", "exam_mark-group-help_video",
|
|
|
"exam_inspected_info-list-help_video" });
|
|
|
}
|