From 40b1b5d1460285c00c15e876fbde41bb0a122af8 Mon Sep 17 00:00:00 2001 From: Stas Buldakov Date: Fri, 29 Dec 2023 12:38:13 +0400 Subject: [PATCH] Add access policy --- aidbox-resources.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/aidbox-resources.yaml b/aidbox-resources.yaml index 9c63f4a..70fb495 100644 --- a/aidbox-resources.yaml +++ b/aidbox-resources.yaml @@ -19,6 +19,18 @@ matcho: - "#/ui/chat/.+" - "/ui/chat" --- +id: ui-user-actions +resourceType: AccessPolicy +engine: matcho +matcho: + user: + id: present? + uri: + $one-of: + - '#/ui/patients/.+' + - /ui/patients + - '#/ui/forms/.+' +--- id: public-ui-auth resourceType: AccessPolicy engine: matcho @@ -67,5 +79,3 @@ password: dr-acorn data: roleName: doctor fullName: Dr. Acorn - -