Skip to content

Commit 65c7695

Browse files
committed
Minor stylistic changes
1 parent df9b10b commit 65c7695

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/frameworks/cap/src/bad-authn-authz/EntityExposedWithoutAuthn/EntityExposedWithoutAuthn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CDS entities may be derived from other entities by means of selection and projec
1414

1515
### Enforce authorization with JavaScript
1616

17-
Access control may be enforced when a request handler for the relevant entity or service is registered. Both `cds.Service.before` and `cds.Service.on` may be used for enforcement. For example, to restrict writing to and updating an entity to a user satisfying certain requirements, the below handler registrations may be used:
17+
Access control may be enforced when a request handler for the relevant entity or service is registered. Both `cds.Service.before` and `cds.Service.on` may be used for enforcement. For example, to restrict writing to and updating an entity to a user satisfying certain requirements, either one of the below handler registrations may be used:
1818

1919
``` javascript
2020
/**
@@ -38,7 +38,7 @@ this.on(["WRITE", "UPDATE"], "SomeEntity", (req) => {
3838

3939
## Examples
4040

41-
The following CDS definition and its JavaScript implementation imposes no authorization on SomeEntity. Note that the `OriginalEntity` from which `DerivedEntity` derives from does not control the access either.
41+
The following CDS definition and its JavaScript implementation imposes no authorization on `SomeEntity`. Note that the `OriginalEntity` from which `DerivedEntity` derives from does not control the access either.
4242

4343
### db/schema.cds
4444

0 commit comments

Comments
 (0)