fix: 修复超级管理员只能看自己数据BUG

pull/9/head 1.6.1
Carina 3 years ago
parent 3c182b10f9
commit 35f9524378

@ -141,14 +141,13 @@ public class QueryDataPermsHandler implements QueryBuilderChain{
if(null != defRole){
conditionType = ConditionType.getConditionType(defRole.getDataScope());
}
}
// 如果组织为空 则默认权限为查自己的数据
if(!ConditionType.SELF.equals(conditionType) &&
CollUtil.isEmpty(orgIdGroupList)){
conditionType = ConditionType.SELF;
}
// 如果组织为空 则默认权限为查自己的数据
if(!ConditionType.SELF.equals(conditionType) &&
CollUtil.isEmpty(orgIdGroupList)){
conditionType = ConditionType.SELF;
}
}
// 常量
final ConditionType finalConditionType = conditionType;

Loading…
Cancel
Save