Comparing version 1.13.19 to 1.13.20
v1.13.19 / 2019-01-14 | ||
v1.13.20 / 2019-01-14 | ||
================== | ||
* fix README.md | ||
* fix: downgrade the check for 'findby' from OACL level to ACL level. | ||
v1.13.19 / 2019-01-14 | ||
===================== | ||
* Release v1.13.19 | ||
* support `findby ` in FibAppReq. | ||
@@ -6,0 +13,0 @@ |
@@ -39,4 +39,3 @@ /// <reference lib="es2017" /> | ||
const mks = base_model.id; | ||
const extend_instance = new hasmany_assoc.model(); | ||
if (!checkout_acl_1.checkout_robj_acl(req.session, 'find', base_instance, extend_instance, findby.extend)) | ||
if (!checkout_acl_1.checkout_acl(req.session, 'find', base_model.ACL, findby.extend)) | ||
return; | ||
@@ -61,4 +60,3 @@ /** | ||
return; | ||
const extend_instance = new hasone_assoc.model(); | ||
if (!checkout_acl_1.checkout_robj_acl(req.session, 'find', base_instance, extend_instance, findby.extend)) | ||
if (!checkout_acl_1.checkout_acl(req.session, 'find', base_model.ACL, findby.extend)) | ||
return; | ||
@@ -65,0 +63,0 @@ const assocTplName = hasone_assoc.getAccessor.slice(3); |
{ | ||
"name": "fib-app", | ||
"version": "1.13.19", | ||
"version": "1.13.20", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
@@ -365,3 +365,3 @@ # fib-app | ||
**Started From 1.13.18** | ||
**Started From 1.13.20** | ||
@@ -373,3 +373,3 @@ 通过 `findby` 参数的形式可以对查询对象做出约束。和 `where` 一样, `findby` 参数的值应该是被 JSON 编码又经过 url 编码的的。 | ||
- `findby.where`: 只适用于 `hasOne` 关系. 与[基础的 where](#where-选项) 含义一致. | ||
- `findby.on`: 只适用于 `hasMany` 关系. 与[基础的 where](#where-选项) 含义一致, 但其 key 只能是关联关系中的字段, 而不能被关联中的对象中的字段. | ||
- `findby.on`: 只适用于 `hasMany` 关系. 与[基础的 where](#where-选项) 含义一致, 但其 key 只能是关联关系中的字段, 而不能是被关联中的对象中的字段. | ||
@@ -376,0 +376,0 @@ 例如, 存在以下关系 |
161524
50
3227