From b1e967695e0a188465b2a01119a174d463cbc85c Mon Sep 17 00:00:00 2001 From: yixian Date: Tue, 14 Aug 2018 14:12:53 +0800 Subject: [PATCH] disable city partner --- .../citypartner/web/CityPartnerRegisterController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/au/com/royalpay/payment/manage/citypartner/web/CityPartnerRegisterController.java b/src/main/java/au/com/royalpay/payment/manage/citypartner/web/CityPartnerRegisterController.java index 78f84edb4..5110c2ae2 100644 --- a/src/main/java/au/com/royalpay/payment/manage/citypartner/web/CityPartnerRegisterController.java +++ b/src/main/java/au/com/royalpay/payment/manage/citypartner/web/CityPartnerRegisterController.java @@ -1,6 +1,8 @@ package au.com.royalpay.payment.manage.citypartner.web; + import au.com.royalpay.payment.manage.citypartner.beans.CityPartnerBean; import au.com.royalpay.payment.manage.citypartner.core.CityPartnerRegisterService; +import au.com.royalpay.payment.tools.exceptions.ForbiddenException; import au.com.royalpay.payment.tools.http.HttpUtils; import org.springframework.validation.Errors; import org.springframework.web.bind.annotation.RequestBody; @@ -23,6 +25,9 @@ public class CityPartnerRegisterController { @RequestMapping(method = RequestMethod.POST) public void register(@RequestBody @Valid CityPartnerBean partner, Errors errors) { HttpUtils.handleValidErrors(errors); + if (true) { + throw new ForbiddenException(); + } cityPartnerRegisterService.saveRegistry(partner); } }