From 0c14e6ed4d03aac6898e2dfe4dc5f70678172d43 Mon Sep 17 00:00:00 2001 From: Ludeck Date: Tue, 25 Feb 2025 23:35:45 +0000 Subject: [PATCH 1/2] Provide /picklistAll as an alternative to /listAll. Returns the same data but intended only to be used for picklist population. Would enable permissions to be applied differently for that use case. --- src/server/data_form.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/server/data_form.ts b/src/server/data_form.ts index b3514319..cf8400a5 100644 --- a/src/server/data_form.ts +++ b/src/server/data_form.ts @@ -150,7 +150,9 @@ export class FormsAngular { processArgs(this.options, [resourceName, this.collectionGet()]) ); - // return the List attributes for all records - used by record-handler's setUpLookupOptions() method, for cases + // return the List attributes for all records. two endpoints that go through the same handler so permissions + // can be applied differently for the two use cases. /listAll is intended for listing records on a page; + // /picklistAll for listing them in a