owl-cli 6.32.0 → 6.34.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.
|
@@ -509,6 +509,7 @@ function merge(oldObj,newObj,permissions,orgId){
|
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
+
return newObj;
|
|
512
513
|
|
|
513
514
|
}
|
|
514
515
|
|
|
@@ -518,11 +519,11 @@ function getListPermissionFilter(tableId, roleId,orgId,userId, permissions){
|
|
|
518
519
|
var filters = [];
|
|
519
520
|
var excludeFilters = [];
|
|
520
521
|
|
|
521
|
-
if(tp.same_org.read==='allowed' && tp.sub_org.read==='denied') {
|
|
522
|
+
if(tp.same_org.read==='allowed' && tp.sub_org.read==='denied' && orgId!='0') {
|
|
522
523
|
//只能读取本组织的数据
|
|
523
524
|
filters.push({"term": {"_orgId.keyword": orgId}});
|
|
524
525
|
}
|
|
525
|
-
else if(tp.same_org.read==='allowed' && tp.sub_org.read==='allowed'){
|
|
526
|
+
else if(tp.same_org.read==='allowed' && tp.sub_org.read==='allowed'&& orgId!='0'){
|
|
526
527
|
filters.push({"term": {"_orgIds.keyword": orgId}});
|
|
527
528
|
}
|
|
528
529
|
|