# HG changeset patch # User Raimund Renkert # Date 1377609959 -7200 # Node ID 5c996cf50437565ee4108772dd018b43f34151b2 # Parent 835eec282baaabf740e80a7ae64e8d0a96ff331e Fixed authorization in exporter. diff -r 835eec282baa -r 5c996cf50437 src/main/java/de/intevation/lada/rest/LAFExportService.java --- a/src/main/java/de/intevation/lada/rest/LAFExportService.java Tue Aug 27 09:47:07 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/LAFExportService.java Tue Aug 27 15:25:59 2013 +0200 @@ -76,7 +76,7 @@ ResponseBuilder response = Response.status(Status.FORBIDDEN); return response.build(); } - if (!authentication.hasAccess(header, probeId) || + if (!authentication.hasAccess(header, probeId) && !authorization.isReadOnly(probeId)) { ResponseBuilder response = Response.status(Status.FORBIDDEN); return response.build();