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.
|
@@ -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 !== '
|
|
306
|
+
if(ef_table_permissions.read !== 'allowed' && action==='read'){
|
|
307
307
|
throw "表没有读取权限。"
|
|
308
308
|
}
|
|
309
|
-
if(ef_table_permissions.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']) {
|