diff src/main/java/de/intevation/lada/rest/LKommentarService.java @ 261:07c4186cbfab

Enable read access on all objects for authorized users.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 16 Jul 2013 11:18:05 +0200
parents d8a3d188046f
children 183f8116d9a6
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/LKommentarService.java	Tue Jul 16 08:24:34 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/LKommentarService.java	Tue Jul 16 11:18:05 2013 +0200
@@ -118,14 +118,11 @@
                 return new Response(false, 609, new ArrayList<LKommentarP>());
             }
             String probeId = params.getFirst("probeId");
-            if (authentication.hasAccess(headers, probeId)) {
-                QueryBuilder<LKommentarP> builder =
-                    new QueryBuilder<LKommentarP>(
-                        repository.getEntityManager(), LKommentarP.class);
-                builder.and("probeId", probeId);
-                return repository.filter(builder.getQuery());
-            }
-            return new Response(false, 698, new ArrayList<LKommentarP>());
+            QueryBuilder<LKommentarP> builder =
+                new QueryBuilder<LKommentarP>(
+                    repository.getEntityManager(), LKommentarP.class);
+            builder.and("probeId", probeId);
+            return repository.filter(builder.getQuery());
         }
         catch(AuthenticationException ae) {
             return new Response(false, 699, new ArrayList<LKommentarP>());
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)