changeset 837:9dd9a3de7a61

Fixed request methods.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 08 Jan 2016 12:20:31 +0100
parents 313bd1d227f1
children 2fe625c91ab3
files src/main/java/de/intevation/lada/rest/stamm/OrtService.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)