权限判空处理
This commit is contained in:
parent
a464fcbe6c
commit
05d66684ce
Binary file not shown.
@ -572,7 +572,7 @@ public class CoeCooperationAPIManager {
|
|||||||
}else {
|
}else {
|
||||||
//查询用户权限
|
//查询用户权限
|
||||||
CoeCooperationRoleModel hideRole = new CoeCooperationRoleDao().getCooperationHideRoleByRoleName(teamId, userId);
|
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());
|
List<String> rolePermList = new CoeCooperationRolePermDao().getRolePermListByRole(teamId, hideRole.getId());
|
||||||
if (!rolePermList.contains(palVersionId)) {
|
if (!rolePermList.contains(palVersionId)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user