owl-cli 6.200.0 → 6.201.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
|