Skip to content

Commit 74b3aae

Browse files
committed
docs(nestjs-acl-permissions): clarify limitations of __current support in README
1 parent 2d3cdd3 commit 74b3aae

File tree

1 file changed

+2
-2
lines changed
  • libs/acl-permissions/nestjs-acl-permissions

1 file changed

+2
-2
lines changed

libs/acl-permissions/nestjs-acl-permissions/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ GET /posts
17701770
-**Per-item field restrictions**: Each item can have different visible fields
17711771
-**Meta information**: `fieldRestrictions` tells which fields were hidden
17721772
-**Empty results**: If no records match ACL conditions, returns empty array per JSON:API spec
1773-
- ⚠️ **No `__current` support**: Cannot use `${@input.*}` in getAll (no single entity context)
1773+
- ⚠️ **No `__current` support**: Can use only `${@input.*}` without `__current`. `${@input}` is each row from a query result
17741774
- ⚠️ **Multiple rules merge**: If multiple rules match, fields are combined (union)
17751775

17761776
**Empty Result Example:**
@@ -1953,7 +1953,7 @@ GET /posts/:id
19531953
-**Field restrictions**: Single item can have hidden fields
19541954
-**Meta information**: `fieldRestrictions` tells which fields were hidden
19551955
- ⚠️ **404 if not found**: If entity doesn't exist OR doesn't match ACL conditions → 404
1956-
- ⚠️ **No `__current` support**: Cannot use `${@input.*}` in getOne (no entity context yet)
1956+
- ⚠️ **No `__current` support**: Can use only `${@input.*}` without `__current`. `${@input}` is row from a query result
19571957
- ⚠️ **Multiple rules merge**: If multiple rules match, fields are combined (union)
19581958

19591959
**404 Not Found vs 403 Forbidden:**

0 commit comments

Comments
 (0)