owl-cli 6.34.0 → 6.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -519,11 +519,12 @@ function getListPermissionFilter(tableId, roleId,orgId,userId, permissions){
|
|
|
519
519
|
var filters = [];
|
|
520
520
|
var excludeFilters = [];
|
|
521
521
|
|
|
522
|
-
|
|
522
|
+
|
|
523
|
+
if(tp.same_org.list==='allowed' && tp.sub_org.list==='denied' && orgId!='0') {
|
|
523
524
|
//只能读取本组织的数据
|
|
524
525
|
filters.push({"term": {"_orgId.keyword": orgId}});
|
|
525
526
|
}
|
|
526
|
-
else if(tp.same_org.
|
|
527
|
+
else if(tp.same_org.list==='allowed' && tp.sub_org.list==='allowed' && orgId!='0'){
|
|
527
528
|
filters.push({"term": {"_orgIds.keyword": orgId}});
|
|
528
529
|
}
|
|
529
530
|
|