Mercurial > lada > lada-server
diff src/main/java/de/intevation/lada/rest/stamm/OrtService.java @ 837:9dd9a3de7a61
Fixed request methods.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 08 Jan 2016 12:20:31 +0100 |
parents | 313bd1d227f1 |
children | 670f58112734 |
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);