commit 3268761264e975b79cb3121b86cf2adb9ef32ade
parent a96869b5fef62d93621df4700f036a7e70883fde
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 12 Jul 2026 23:57:22 +0200
set permissions for units-read endpoints
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_dispatcher.c b/src/backend/taler-merchant-httpd_dispatcher.c
@@ -413,6 +413,7 @@ determine_handler_group (const char **urlp,
{
.url_prefix = "/units",
.method = MHD_HTTP_METHOD_GET,
+ .permission = "units-read",
.handler = &TMH_private_get_units
},
/* POST /units: */
@@ -429,6 +430,7 @@ determine_handler_group (const char **urlp,
.method = MHD_HTTP_METHOD_GET,
.have_id_segment = true,
.allow_deleted_instance = true,
+ .permission = "units-read",
.handler = &TMH_private_get_units_ID
},
/* DELETE /units/$UNIT: */