|
|
@@ -61,10 +61,12 @@ public class DocDirServiceImpl implements IDocDirService {
|
|
|
String yes = "Y";
|
|
|
if (yes.equals(dir.getIsEncrypt())) {
|
|
|
DocDirLevel level = levelService.selectDocDirLevelByLevelCode(dir.getEncryptLevel());
|
|
|
- JSONObject obj = JSONObject.parse(level.getLevelRoles());
|
|
|
- if (obj.getInteger(roleCode) == null || obj.getInteger(roleCode) != 1) {
|
|
|
- //只有权限为选中状态才有滴
|
|
|
- return false;
|
|
|
+ if (level != null && level.getLevelRoles() != null) {
|
|
|
+ JSONObject obj = JSONObject.parse(level.getLevelRoles());
|
|
|
+ if (obj.getInteger(roleCode) == null || obj.getInteger(roleCode) != 1) {
|
|
|
+ //只有权限为选中状态才有滴
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
//如果不是加密目录,肯定是所有权限都有滴
|