doomiwork 3.7.11 → 3.7.12
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.
- package/core/controller.js +2 -2
- package/package.json +1 -1
package/core/controller.js
CHANGED
|
@@ -40,7 +40,7 @@ class controller {
|
|
|
40
40
|
/**
|
|
41
41
|
* 权限的业务sql过滤
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
PermissonBusiness(req){
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
@@ -223,7 +223,7 @@ class controller {
|
|
|
223
223
|
///将从数据库中获得的结果集根据dataconfig中的配置进行映射转换
|
|
224
224
|
let resultMapping = await parse.transferName2Mapping(result.rows, req.fieldsMapping);
|
|
225
225
|
if (this._daoModel.hasPermissionControl) {
|
|
226
|
-
const accessResult = await this._daoModel.getDataPermissionSetting(req.params.id,this.PermissonBusiness)
|
|
226
|
+
const accessResult = await this._daoModel.getDataPermissionSetting(req.params.id,this.PermissonBusiness(req))
|
|
227
227
|
if (accessResult.successed) {
|
|
228
228
|
resultMapping.data[0].managepermission = accessResult.managepermission;
|
|
229
229
|
resultMapping.data[0].consumepermission = accessResult.consumepermission;
|