From 15e23227e5e23e934e532070a448f5ab71e44ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Wed, 5 Jun 2024 13:40:57 +0200 Subject: [PATCH] mention shorthands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- docs/auth/service-to-service-auth.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/auth/service-to-service-auth.md b/docs/auth/service-to-service-auth.md index f8b199a632..8c9130173c 100644 --- a/docs/auth/service-to-service-auth.md +++ b/docs/auth/service-to-service-auth.md @@ -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 ```