diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index 58278856..1ee4c1b3 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -1137,6 +1137,7 @@ url_handler (void *cls, { .url_prefix = "/instances/", .method = MHD_HTTP_METHOD_GET, + .skip_instance = true, .default_only = true, .have_id_segment = true, .handler = &TMH_private_get_instances_default_ID @@ -1145,6 +1146,7 @@ url_handler (void *cls, { .url_prefix = "/instances/", .method = MHD_HTTP_METHOD_DELETE, + .skip_instance = true, .default_only = true, .have_id_segment = true, .handler = &TMH_private_delete_instances_default_ID @@ -1153,6 +1155,7 @@ url_handler (void *cls, { .url_prefix = "/instances/", .method = MHD_HTTP_METHOD_PATCH, + .skip_instance = true, .default_only = true, .have_id_segment = true, .handler = &TMH_private_patch_instances_default_ID, @@ -1167,6 +1170,7 @@ url_handler (void *cls, .url_prefix = "/instances/", .url_suffix = "auth", .method = MHD_HTTP_METHOD_POST, + .skip_instance = true, .default_only = true, .have_id_segment = true, .handler = &TMH_private_post_instances_default_ID_auth, @@ -1872,9 +1876,10 @@ url_handler (void *cls, auth_malformed = true; } - /* If we have not even a default instance AND no override + /* If we have no selected instance, no default instance AND no override credentials, THEN we accept anything (no access control) */ - auth_ok = ( (NULL == TMH_lookup_instance (NULL)) && + auth_ok = ( (NULL == hc->instance) && + (NULL == TMH_lookup_instance (NULL)) && (NULL == TMH_default_auth) ); /* Check against selected instance, if we have one */ if (NULL != hc->instance) |