feat: exposes data arg within create and update access control

This commit is contained in:
James
2022-03-08 14:42:47 -05:00
parent 7e5eeef122
commit 73f418bb5c
5 changed files with 20 additions and 17 deletions

View File

@@ -48,9 +48,10 @@ Returns a boolean which allows/denies access to the `create` request.
**Available argument properties :**
| Option | Description |
| --------- | ----------- |
| **`req`** | The Express `request` object containing the currently authenticated `user` |
| Option | Description |
| ---------- | ----------- |
| **`req`** | The Express `request` object containing the currently authenticated `user` |
| **`data`** | The data passed to create the document with. |
### Read
@@ -69,10 +70,11 @@ Update access functions can return a boolean result or optionally return a [quer
**Available argument properties :**
| Option | Description |
| --------- | ----------- |
| **`req`** | The Express `request` object containing the currently authenticated `user` |
| **`id`** | `id` of document requested to update |
| Option | Description |
| ---------- | ----------- |
| **`req`** | The Express `request` object containing the currently authenticated `user` |
| **`id`** | `id` of document requested to update |
| **`data`** | The data passed to update the document with. |
### Delete

View File

@@ -46,6 +46,7 @@ Returns a boolean result or optionally a [query constraint](/docs/queries/overvi
**Available argument properties:**
| Option | Description |
| --------- | ----------- |
| **`req`** | The Express `request` object containing the currently authenticated `user` |
| Option | Description |
| ---------- | ----------- |
| **`req`** | The Express `request` object containing the currently authenticated `user` |
| **`data`** | The data passed to update the global with. |