diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-products.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-products.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-products.c b/src/backend/taler-merchant-httpd_private-post-products.c index 4cf97fd0..4227c826 100644 --- a/src/backend/taler-merchant-httpd_private-post-products.c +++ b/src/backend/taler-merchant-httpd_private-post-products.c @@ -91,6 +91,7 @@ TMH_private_post_products (const struct TMH_RequestHandler *rh, GNUNET_JSON_spec_string ("unit", (const char **) &pd.unit), TALER_JSON_spec_amount ("price", + TMH_currency, &pd.price), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_string ("image", @@ -124,17 +125,6 @@ TMH_private_post_products (const struct TMH_RequestHandler *rh, : MHD_NO; } } - if (0 != - strcasecmp (pd.price.currency, - TMH_currency)) - { - GNUNET_break_op (0); - GNUNET_JSON_parse_free (spec); - return TALER_MHD_reply_with_error (connection, - MHD_HTTP_CONFLICT, - TALER_EC_GENERIC_CURRENCY_MISMATCH, - TMH_currency); - } if (total_stock < -1) { GNUNET_break_op (0); |