owl-cli 6.200.0 → 6.202.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.
@@ -52,7 +52,10 @@
52
52
 
53
53
  for(var i=0;i<ids.length; i++) {
54
54
  var id = ids[i];
55
- @projectCodeService.del(id);
55
+
56
+ var ip = $.getClientIp();
57
+ var ua = "" + request.getHeader("user-agent");
58
+ @projectCodeService.del(id,env.loginUserId,ip,ua);
56
59
  }
57
60
 
58
61
 
@@ -303,10 +303,13 @@ function checkPermission(data, permissions, orgId, action) {
303
303
  if(ef_table_permissions.update !== 'allowed' && action==='update'){
304
304
  throw "表没有删除记录权限。"
305
305
  }
306
- if(ef_table_permissions.read !== 'read' && action==='read'){
306
+ if(ef_table_permissions.read !== 'allowed' && action==='read'){
307
307
  throw "表没有读取权限。"
308
308
  }
309
- if(ef_table_permissions.list !== 'read' && action==='list'){
309
+ if(ef_table_permissions.list !== 'allowed' && action==='list'){
310
+ throw "表没有列出权限。"
311
+ }
312
+ if(ef_table_permissions.listall !== 'allowed' && action==='listall'){
310
313
  throw "表没有列出权限。"
311
314
  }
312
315
  //检查section_permission
@@ -721,13 +721,17 @@ var @projectCodeService = (function (pigeon) {
721
721
  }
722
722
  },
723
723
 
724
- del: function (id) {
724
+ del: function (id,userId,ip,ua) {
725
725
  //只做软删除
726
726
  var data = f.get(id,true)
727
727
  if (!data) {
728
728
  throw '对象不存在!id=' + id
729
729
  }
730
730
  data.id = id;
731
+ data.owl_lastModifiedUserId = userId;
732
+ data.owl_lastModifiedIp = ip;
733
+ data.owl_lastModifiedUserAgent = ua;
734
+
731
735
  var key = pigeon.getRKey(data['owl_createTime'], 13)
732
736
  pigeon.deleteFromList(f.getAllListName(), key, id)
733
737
  if (data['subplatformId']) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.200.0",
3
+ "version": "6.202.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {