Skip to content

Commit 65f8ff9

Browse files
committed
docs: update documentation to reflect changes in user and system Data API methods
1 parent 9fe02a0 commit 65f8ff9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎documentation/docs/tutorial/03-Customization/12-security.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ This is opt-in. It is especially important for the column configured as `auth.us
118118
119119
| Path | When `normalize` runs |
120120
| --- | --- |
121-
| User-scoped Data API (`admin.resource(...).asUser(...)`) and `admin.createResourceRecord` | Before validation and `beforeSave` hooks |
121+
| User-scoped and system Data API (`admin.resource(...).asUser(...)`, `admin.resource(...).asSystem(...)`) | Before validation and `beforeSave` hooks |
122122
| Bare Data API (`admin.resource(...).create(...)` and siblings) | Before the connector operation |
123123
| Deprecated AdminForth CRUD (`createResourceRecord`, `updateResourceRecord`) | Before validation and `beforeSave` hooks |
124124
| Core password login | On the submitted value of `auth.usernameField`, before the user lookup |

‎documentation/docs/tutorial/03-Customization/13-standardPagesTuning.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ If `beforeDatasourceRequest` or `afterDatasourceResponse` hooks are set for poly
10541054
In cases when column values must follow certain format, you can add `validation` to it.
10551055
`validation` is an array of rules, each containing `regExp` or `validator function` that defines a format for a value and `message` that will be displayed in case when entered value does not pass the check.
10561056

1057-
The create and edit forms check `validation`, `required`, `minLength`/`maxLength`, `minValue`/`maxValue`, `enum` values and `isArray` rules while the user types. The server checks all of them again when the record is saved, so a request sent past the form cannot store an invalid value. `required` columns hidden by `showIn` or `showIf` are not required. Records created or updated from code with `createResourceRecord`/`updateResourceRecord` go through the same checks except `required`.
1057+
The create and edit forms check `validation`, `required`, `minLength`/`maxLength`, `minValue`/`maxValue`, `enum` values and `isArray` rules while the user types. The server checks all of them again when the record is saved, so a request sent past the form cannot store an invalid value. `required` columns hidden by `showIn` or `showIf` are not required. Records created or updated from code with `admin.resource(...).asUser(...)` or `admin.resource(...).asSystem(...)` go through the same checks except `required`.
10581058

10591059
### RegExp validation
10601060
We recommend to use this validation with regExp, because it validates fields in real time

0 commit comments

Comments
 (0)