[Lada-commits] [PATCH] Fixed request methods

Wald Commits scm-commit at wald.intevation.org
Fri Jan 8 12:20:29 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1452252031 -3600
# Node ID 9dd9a3de7a6178d9cc5c022bb5b7f0e2a0ab43ba
# Parent  313bd1d227f1f9903744b17987473115ead33308
Fixed request methods.

diff -r 313bd1d227f1 -r 9dd9a3de7a61 src/main/java/de/intevation/lada/rest/stamm/OrtService.java
--- a/src/main/java/de/intevation/lada/rest/stamm/OrtService.java	Fri Jan 08 12:10:09 2016 +0100
+++ b/src/main/java/de/intevation/lada/rest/stamm/OrtService.java	Fri Jan 08 12:20:31 2016 +0100
@@ -175,7 +175,7 @@
         if (!authorization.isAuthorized(
             request,
             ort,
-            RequestMethod.DELETE,
+            RequestMethod.POST,
             Ort.class)
         ) {
             return new Response(false, 699, ort);
@@ -221,7 +221,7 @@
         if (!authorization.isAuthorized(
             request,
             ort,
-            RequestMethod.DELETE,
+            RequestMethod.PUT,
             Ort.class)
         ) {
             return new Response(false, 699, ort);


More information about the Lada-commits mailing list