owl-cli 6.198.0 → 6.199.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.
@@ -115,7 +115,18 @@ function buildSort(sort){
115
115
  }
116
116
 
117
117
  if(roleId!=='internal' && roleId!='0'){
118
- checkPermission(null,permissions,orgId,"listall");
118
+ try{
119
+ checkPermission(null,permissions,orgId,"listall");
120
+ }
121
+ catch(e){
122
+ var ret = {
123
+ state:'err',
124
+ msg:"permission denied"
125
+ }
126
+ out.print(JSON.stringify(ret));
127
+ return;
128
+ }
129
+
119
130
  }
120
131
 
121
132
  var sr = @projectCodeService.search(mfilters, searchArgs, keyword,from, pageSize, effectiveSort, dataSource ,isRecycleBin );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.198.0",
3
+ "version": "6.199.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {