mention shorthands

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-06-05 13:40:57 +02:00
parent df8063f7ad
commit 15e23227e5
+6 -2
View File
@@ -323,10 +323,12 @@ Each entry has one or more of the following fields:
```yaml
accessRestrictions:
- plugin: my-plugin
# any other permission check will be rejected
# Any other permission check will be rejected.
permission:
- my-plugin.add-item
- my-plugin.remove-item
# Also supports the shorthand form:
# permission: my-plugin.add-item, my-plugin.remove-item
```
- **`permissionAttribute`**: Optional. A key-value object of permission attributes
@@ -348,8 +350,10 @@ Each entry has one or more of the following fields:
accessRestrictions:
- plugin: my-plugin
permissionAttribute:
# updates and deletes will be rejected
# Updates and deletes will be rejected.
action:
- create
- read
# Also supports the shorthand form:
# action: create, read
```