权限判空处理

This commit is contained in:
zhal 2022-08-18 10:33:04 +08:00
parent a464fcbe6c
commit 05d66684ce
2 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ public class CoeCooperationAPIManager {
}else {
//查询用户权限
CoeCooperationRoleModel hideRole = new CoeCooperationRoleDao().getCooperationHideRoleByRoleName(teamId, userId);
if (!CoeCooperationConst.PERM_ALL.equals(hideRole.getDataPerm())) {
if (null!=hideRole && !CoeCooperationConst.PERM_ALL.equals(hideRole.getDataPerm())) {
// 获取用户权限判断是否已存在
List<String> rolePermList = new CoeCooperationRolePermDao().getRolePermListByRole(teamId, hideRole.getId());
if (!rolePermList.contains(palVersionId)) {